Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2017-04-05 16:53:03 -0400
committerKarsten Thoms2017-04-05 16:53:03 -0400
commitfe9d676c3a3c8a84ea0a4d759362c974642b55d1 (patch)
tree65fef92b2ea556f8db895b8c57597e9754149438
parentc189509058e11b50887852f69023291e4aca988c (diff)
downloadrt.equinox.framework-fe9d676c3a3c8a84ea0a4d759362c974642b55d1.tar.gz
rt.equinox.framework-fe9d676c3a3c8a84ea0a4d759362c974642b55d1.tar.xz
rt.equinox.framework-fe9d676c3a3c8a84ea0a4d759362c974642b55d1.zip
Bug 514802 - Return empty fragment constant when fragmentWires
collection is empty Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/classpath/ClasspathManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/classpath/ClasspathManager.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/classpath/ClasspathManager.java
index 10ae89de1..465679144 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/classpath/ClasspathManager.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/loader/classpath/ClasspathManager.java
@@ -93,7 +93,7 @@ public class ClasspathManager {
return emptyFragments;
}
List<ModuleWire> fragmentWires = hostloader.getBundleLoader().getWiring().getProvidedModuleWires(HostNamespace.HOST_NAMESPACE);
- if (fragmentWires == null) {
+ if (fragmentWires == null || fragmentWires.isEmpty()) {
// we don't hold locks while checking the graph, just return if no longer valid
return emptyFragments;
}

Back to the top