Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2012-08-04 20:19:34 +0000
committerThomas Watson2012-08-04 20:19:34 +0000
commit747c370b8bca654fa338a231de2120d692fd74b8 (patch)
tree0cb4b65631272e901b1e35b9632039990d46c43d /bundles
parent67c798641701b94b865c50d4da4fc13423a809d5 (diff)
downloadrt.equinox.framework-747c370b8bca654fa338a231de2120d692fd74b8.tar.gz
rt.equinox.framework-747c370b8bca654fa338a231de2120d692fd74b8.tar.xz
rt.equinox.framework-747c370b8bca654fa338a231de2120d692fd74b8.zip
check for null wiring incase the bundle is not resolved.
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxBundle.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxBundle.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxBundle.java
index c15d22d9b..10b5e3355 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxBundle.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxBundle.java
@@ -677,8 +677,10 @@ public class EquinoxBundle implements Bundle, BundleReference {
ModuleRevision current = getModule().getCurrentRevision();
result.add((Generation) current.getRevisionInfo());
ModuleWiring wiring = current.getWiring();
- for (ModuleWire hostWire : wiring.getProvidedModuleWires(HostNamespace.HOST_NAMESPACE)) {
- result.add((Generation) hostWire.getRequirer().getRevisionInfo());
+ if (wiring != null) {
+ for (ModuleWire hostWire : wiring.getProvidedModuleWires(HostNamespace.HOST_NAMESPACE)) {
+ result.add((Generation) hostWire.getRequirer().getRevisionInfo());
+ }
}
return result;
}

Back to the top