Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2006-04-18 13:48:01 +0000
committerThomas Watson2006-04-18 13:48:01 +0000
commitf5c2921d36e23885e79029c349df8fe9e16c866f (patch)
tree25987f74475fe349ce9001583718ddb58964461a
parent93cca54c27ef740007e9650cf13d1bfe8cd934cf (diff)
downloadrt.equinox.framework-f5c2921d36e23885e79029c349df8fe9e16c866f.tar.gz
rt.equinox.framework-f5c2921d36e23885e79029c349df8fe9e16c866f.tar.xz
rt.equinox.framework-f5c2921d36e23885e79029c349df8fe9e16c866f.zip
Bug 129058 [DS] halts the shutdown process if a component is registered
-rw-r--r--bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ServiceRegistrationImpl.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ServiceRegistrationImpl.java b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ServiceRegistrationImpl.java
index d6afddc64..cc9a23e95 100644
--- a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ServiceRegistrationImpl.java
+++ b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ServiceRegistrationImpl.java
@@ -427,8 +427,10 @@ public class ServiceRegistrationImpl implements ServiceRegistration {
if (use != null) {
use.releaseService();
-
- contextsUsing.remove(user);
+ // contextsUsing may have been nulled out by use.releaseService() if the registrant bundle
+ // is listening for events and unregisters the service
+ if (contextsUsing != null)
+ contextsUsing.remove(user);
}
}
}

Back to the top