diff options
author | DJ Houghton | 2008-03-17 20:10:30 +0000 |
---|---|---|
committer | DJ Houghton | 2008-03-17 20:10:30 +0000 |
commit | ed95a0ef2bf591f7d35b558a5977b23f75cb73ec (patch) | |
tree | ca63f2be8f900d0c8e3d46f984a20f56d8f2debb /bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/internal/frameworkadmin/equinox/EquinoxBundlesState.java | |
parent | 7570d4f81754db544a5a00af5f6e4d261268d62f (diff) | |
download | rt.equinox.p2-ed95a0ef2bf591f7d35b558a5977b23f75cb73ec.tar.gz rt.equinox.p2-ed95a0ef2bf591f7d35b558a5977b23f75cb73ec.tar.xz rt.equinox.p2-ed95a0ef2bf591f7d35b558a5977b23f75cb73ec.zip |
Bug 222871 - Some test plugins not found
- protect against NPE
Diffstat (limited to 'bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/internal/frameworkadmin/equinox/EquinoxBundlesState.java')
-rw-r--r-- | bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/internal/frameworkadmin/equinox/EquinoxBundlesState.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/internal/frameworkadmin/equinox/EquinoxBundlesState.java b/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/internal/frameworkadmin/equinox/EquinoxBundlesState.java index d7b24fd92..b6395dbaf 100644 --- a/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/internal/frameworkadmin/equinox/EquinoxBundlesState.java +++ b/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/internal/frameworkadmin/equinox/EquinoxBundlesState.java @@ -748,7 +748,12 @@ public class EquinoxBundlesState implements BundlesState { if (id != DEFAULT_TIMESTAMP) { try { - BundleDescription bundleDescription = soFactory.createBundleDescription(state, Utils.getOSGiManifest(bInfo.getLocation()), bInfo.getLocation(), id); + Dictionary manifest = Utils.getOSGiManifest(bInfo.getLocation()); + if (manifest == null) { + Log.log(LogService.LOG_WARNING, this, "uninstallBundle(BundleInfo)", "Unable to get bundle manifest for: " + bInfo.getLocation()); + return; + } + BundleDescription bundleDescription = soFactory.createBundleDescription(state, manifest, bInfo.getLocation(), id); state.removeBundle(bundleDescription); manipulator.getConfigData().removeBundle(bInfo); } catch (BundleException e) { |