Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2002-11-26 00:04:00 +0000
committerDJ Houghton2002-11-26 00:04:00 +0000
commitbaef46166175e3b18847a81a2052c3896f151fca (patch)
treeff96940384ca98b549c1404b6d20a7eee05593be
parentf93647f99411eef6ccfe6346b1e6af871d6a8984 (diff)
downloadeclipse.platform.runtime-baef46166175e3b18847a81a2052c3896f151fca.tar.gz
eclipse.platform.runtime-baef46166175e3b18847a81a2052c3896f151fca.tar.xz
eclipse.platform.runtime-baef46166175e3b18847a81a2052c3896f151fca.zip
Fix for bug 27132 [runtime] NPE on shutdownv20021126
-rw-r--r--bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java b/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java
index 07ff495a8..dd1b8aca3 100644
--- a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java
+++ b/bundles/org.eclipse.core.runtime/src/org/eclipse/core/internal/runtime/InternalPlatform.java
@@ -95,7 +95,7 @@ public final class InternalPlatform {
public static boolean DEBUG_PLUGINS = false;
public static boolean DEBUG_STARTUP = false;
public static boolean DEBUG_SHUTDOWN = false;
- public static String DEBUG_PLUGINS_DUMP = ""; //$NON-NLS-1$
+ public static String DEBUG_PLUGINS_DUMP = null;
public static boolean DEBUG_PREFERENCES = false;
private static final String KEY_PREFIX = "%"; //$NON-NLS-1$
@@ -327,7 +327,7 @@ public static Map getAuthorizationInfo(URL serverUrl, String realm, String authS
return info == null ? null : new HashMap(info);
}
public static boolean getBooleanOption(String option, boolean defaultValue) {
- String optionValue = options.getProperty(option);
+ String optionValue = getDebugOption(option);
return (optionValue != null && optionValue.equalsIgnoreCase("true")) || defaultValue; //$NON-NLS-1$
}
/**
@@ -511,7 +511,7 @@ public static void loaderShutdown() {
assertInitialized();
registry.shutdown(null);
clearLockFile();
- if (DEBUG_PLUGINS && DEBUG_PLUGINS_DUMP.length() != 0) {
+ if (DEBUG_PLUGINS && DEBUG_PLUGINS_DUMP != null) {
// We are debugging so output the registry in XML
// format.
registry.debugRegistry(DEBUG_PLUGINS_DUMP);

Back to the top