[udig-devel] [jira] Created: (UDIG-957) UiPlugin activator should
check for net.refractions.udig bundle availability
Aleksander Bandelj (JIRA)
jira at codehaus.org
Fri Aug 4 11:32:01 PDT 2006
UiPlugin activator should check for net.refractions.udig bundle availability
----------------------------------------------------------------------------
Key: UDIG-957
URL: http://jira.codehaus.org/browse/UDIG-957
Project: uDIG
Issue Type: Bug
Components: ui
Affects Versions: UDIG 1.1.RC3
Environment: Eclipse Equinox
Reporter: Aleksander Bandelj
Priority: Minor
net.refractions.udig.internal.ui.UiPlugin activator reads uDig version from net.refractions.udig bundle.
private void loadVersion() throws IOException {
Bundle pluginBundle = Platform.getBundle("net.refractions.udig");
URL mappingsURL = Platform.find(pluginBundle, new Path(MAPPINGS_FILENAME));
It should also check for bundle availability, otherwise activator may fail with NullPointerException:
private void loadVersion() throws IOException {
Bundle pluginBundle = Platform.getBundle("net.refractions.udig");
if(pluginBundle == null) {
String message = "Unable to locate net.refractions.udig bundle and determine uDig version.";
this.getLog().log(new Status(IStatus.WARNING, ID, 0, message, null));
return;
}
URL mappingsURL = Platform.find(pluginBundle, new Path(MAPPINGS_FILENAME));
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the udig-devel
mailing list