Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2008-03-23 05:02:19 +0000
committerJohn Arthorne2008-03-23 05:02:19 +0000
commitdbe1c9f2a5a303ee7740afb6697233f494b2d0ca (patch)
tree4733510f83c9b897c499611ca8c3a73805f8a70c /bundles/org.eclipse.equinox.simpleconfigurator.manipulator
parent6f76495e08f98cfe6607e27f7bb10481a8eacb76 (diff)
downloadrt.equinox.p2-dbe1c9f2a5a303ee7740afb6697233f494b2d0ca.tar.gz
rt.equinox.p2-dbe1c9f2a5a303ee7740afb6697233f494b2d0ca.tar.xz
rt.equinox.p2-dbe1c9f2a5a303ee7740afb6697233f494b2d0ca.zip
Bug 223563 Exception in org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.start() of bundle org.eclipse.equinox.p2.reconciler.dropins with N20080321-0010 for mac drop
Diffstat (limited to 'bundles/org.eclipse.equinox.simpleconfigurator.manipulator')
-rw-r--r--bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java b/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java
index d50762b83..9fe04e40b 100644
--- a/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java
+++ b/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java
@@ -637,9 +637,11 @@ public class SimpleConfiguratorManipulatorImpl implements ConfiguratorManipulato
for (int i = 0; i < jvmArgs.length; i++)
if (jvmArgs[i].startsWith("-D")) {
int index = jvmArgs[i].indexOf("=");
- String key = jvmArgs[i].substring("-D".length(), index);
- String value = jvmArgs[i].substring(index + 1);
- properties.setProperty(key, value);
+ if (index > 0) {
+ String key = jvmArgs[i].substring("-D".length(), index);
+ String value = jvmArgs[i].substring(index + 1);
+ properties.setProperty(key, value);
+ }
}
Utils.appendProperties(properties, manipulator.getConfigData().getFwIndependentProps());

Back to the top