diff options
author | Thomas Watson | 2012-08-04 20:19:34 +0000 |
---|---|---|
committer | Thomas Watson | 2012-08-04 20:19:34 +0000 |
commit | 747c370b8bca654fa338a231de2120d692fd74b8 (patch) | |
tree | 0cb4b65631272e901b1e35b9632039990d46c43d /bundles | |
parent | 67c798641701b94b865c50d4da4fc13423a809d5 (diff) | |
download | rt.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.java | 6 |
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; } |