Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Daniel2012-03-08 13:58:33 +0000
committerThomas Watson2012-03-08 13:58:33 +0000
commite545f5e1428338ed3c28686ee22186898eca0a55 (patch)
tree96f27914d44acee88f4c66701c7c7a84d4eddc8e /bundles/org.eclipse.osgi
parent47f021c0ec945529add384c6b2d153caf027792d (diff)
downloadrt.equinox.framework-e545f5e1428338ed3c28686ee22186898eca0a55.tar.gz
rt.equinox.framework-e545f5e1428338ed3c28686ee22186898eca0a55.tar.xz
rt.equinox.framework-e545f5e1428338ed3c28686ee22186898eca0a55.zip
Bug 373640 - NPE in launcher introduced by bug 241192v20120308-1358
The loadConfiguration method is allowed to return null, so the substituteVars(Properties) invoked as a last instruction inside the loadConfiguration method must be able to handle null properties properly.
Diffstat (limited to 'bundles/org.eclipse.osgi')
-rw-r--r--bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java b/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java
index 9c2f824d7..5783d5a9e 100644
--- a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java
+++ b/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java
@@ -1159,6 +1159,10 @@ public class EclipseStarter {
}
private static Properties substituteVars(Properties result) {
+ if (result == null) {
+ //nothing todo.
+ return null;
+ }
for (Enumeration<Object> eKeys = result.keys(); eKeys.hasMoreElements();) {
Object key = eKeys.nextElement();
if (key instanceof String) {

Back to the top