Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2008-03-23 05:04:09 +0000
committerJohn Arthorne2008-03-23 05:04:09 +0000
commit560c78b8d595386ab7a046de373bb466735adcb9 (patch)
tree3f8e74af91737f64735d9e3bb577027573b7e46c /bundles/org.eclipse.equinox.simpleconfigurator.manipulator
parentdbe1c9f2a5a303ee7740afb6697233f494b2d0ca (diff)
downloadrt.equinox.p2-560c78b8d595386ab7a046de373bb466735adcb9.tar.gz
rt.equinox.p2-560c78b8d595386ab7a046de373bb466735adcb9.tar.xz
rt.equinox.p2-560c78b8d595386ab7a046de373bb466735adcb9.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.java4
1 files changed, 2 insertions, 2 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 9fe04e40b..72f4a2b50 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,8 +637,8 @@ public class SimpleConfiguratorManipulatorImpl implements ConfiguratorManipulato
for (int i = 0; i < jvmArgs.length; i++)
if (jvmArgs[i].startsWith("-D")) {
int index = jvmArgs[i].indexOf("=");
- if (index > 0) {
- String key = jvmArgs[i].substring("-D".length(), index);
+ if (index > 0 && jvmArgs[i].length() > 2) {
+ String key = jvmArgs[i].substring(2, index);
String value = jvmArgs[i].substring(index + 1);
properties.setProperty(key, value);
}

Back to the top