Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2013-08-27 15:45:01 +0000
committerThomas Watson2013-08-27 15:45:01 +0000
commit79653340f4fe73759a673da9eedc9adb287ecc1c (patch)
tree98263afcb371ce2fe641cef2766b885504ae68bf /bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/SystemBundleActivator.java
parent97f78f8fd94eaa1d687864df002122f314284e65 (diff)
downloadrt.equinox.framework-79653340f4fe73759a673da9eedc9adb287ecc1c.tar.gz
rt.equinox.framework-79653340f4fe73759a673da9eedc9adb287ecc1c.tar.xz
rt.equinox.framework-79653340f4fe73759a673da9eedc9adb287ecc1c.zip
Bug 415951 - NPE in System.setSecurityManager
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/SystemBundleActivator.java')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/SystemBundleActivator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/SystemBundleActivator.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/SystemBundleActivator.java
index 7f1bdef81..6fa984613 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/SystemBundleActivator.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/SystemBundleActivator.java
@@ -189,7 +189,7 @@ public class SystemBundleActivator implements BundleActivator {
}
private void unintallSecurityManager() {
- if (System.getSecurityManager() == setSecurityManagner)
+ if (setSecurityManagner != null && System.getSecurityManager() == setSecurityManagner)
System.setSecurityManager(null);
setSecurityManagner = null;
}

Back to the top