Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2008-01-30 20:41:05 +0000
committerThomas Watson2008-01-30 20:41:05 +0000
commitc8b21f8dc61053277113f322b5eec353eeee2c00 (patch)
tree912975dbaba99689ffc7caeb33d50b7ac82eba46 /bundles/org.eclipse.osgi/resolver
parent8f93985fd05a1c67b8f8091dfc40a9306231e317 (diff)
downloadrt.equinox.framework-c8b21f8dc61053277113f322b5eec353eeee2c00.tar.gz
rt.equinox.framework-c8b21f8dc61053277113f322b5eec353eeee2c00.tar.xz
rt.equinox.framework-c8b21f8dc61053277113f322b5eec353eeee2c00.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 9b99ba591..548d98c3a 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 == null ? null : containingState.getFragments(this);
+ return containingState == null ? EMPTY_BUNDLEDESCS : containingState.getFragments(this);
}
public HostSpecification getHost() {

Back to the top