Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2008-01-30 20:39:52 +0000
committerThomas Watson2008-01-30 20:39:52 +0000
commit8f93985fd05a1c67b8f8091dfc40a9306231e317 (patch)
tree3d9d804b27cbe8787aed5abc8c95fe6cbc37a1c2 /bundles/org.eclipse.osgi/resolver
parent6d38daad6d8f0ff3014ebc35a36283c9ed15e61c (diff)
downloadrt.equinox.framework-8f93985fd05a1c67b8f8091dfc40a9306231e317.tar.gz
rt.equinox.framework-8f93985fd05a1c67b8f8091dfc40a9306231e317.tar.xz
rt.equinox.framework-8f93985fd05a1c67b8f8091dfc40a9306231e317.zip
Bug 217150 org.eclipse.osgi.internal.resolver.BundleDescriptionImpl.getFragments throws a NPE if there is no containing state
Diffstat (limited to 'bundles/org.eclipse.osgi/resolver')
-rw-r--r--bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/BundleDescriptionImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/BundleDescriptionImpl.java b/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/BundleDescriptionImpl.java
index 8fee65965..9b99ba591 100644
--- a/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/BundleDescriptionImpl.java
+++ b/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/BundleDescriptionImpl.java
@@ -134,7 +134,7 @@ public class BundleDescriptionImpl extends BaseDescriptionImpl implements Bundle
public BundleDescription[] getFragments() {
if (host != null)
return EMPTY_BUNDLEDESCS;
- return containingState.getFragments(this);
+ return containingState == null ? null : containingState.getFragments(this);
}
public HostSpecification getHost() {

Back to the top