Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjfogell2006-01-05 22:36:58 +0000
committerjfogell2006-01-05 22:36:58 +0000
commit45c065daed7e1d845b0bab8a2ef811c1e7266c50 (patch)
treede7e719da16b19e35985d457e445fd1819896cca /bundles/org.eclipse.equinox.wireadmin
parente7d9a9ea62b31c0c5c35cac10ed959b88338b8e8 (diff)
downloadrt.equinox.bundles-45c065daed7e1d845b0bab8a2ef811c1e7266c50.tar.gz
rt.equinox.bundles-45c065daed7e1d845b0bab8a2ef811c1e7266c50.tar.xz
rt.equinox.bundles-45c065daed7e1d845b0bab8a2ef811c1e7266c50.zip
add a check for null to prevent NPE
Diffstat (limited to 'bundles/org.eclipse.equinox.wireadmin')
-rw-r--r--bundles/org.eclipse.equinox.wireadmin/src/org/eclipse/equinox/wireadmin/Activator.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.wireadmin/src/org/eclipse/equinox/wireadmin/Activator.java b/bundles/org.eclipse.equinox.wireadmin/src/org/eclipse/equinox/wireadmin/Activator.java
index 327c0e39..d703e417 100644
--- a/bundles/org.eclipse.equinox.wireadmin/src/org/eclipse/equinox/wireadmin/Activator.java
+++ b/bundles/org.eclipse.equinox.wireadmin/src/org/eclipse/equinox/wireadmin/Activator.java
@@ -38,8 +38,12 @@ public class Activator implements BundleActivator, ServiceTrackerCustomizer {
* @see BundleActivator#stop(BundleContext)
*/
public void stop(BundleContext context) throws Exception {
- wireadminReg.unregister();
- wireadmin.destroy();
+ if(wireadminReg != null)
+ {
+ wireadminReg.unregister();
+ wireadmin.destroy();
+ }
+
}
public Object addingService(ServiceReference reference) {

Back to the top