Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2014-09-03 05:50:45 -0400
committerTobias Schwarz2014-09-03 05:50:45 -0400
commit26c71dd7e1f1ace5cda3bfa409e19dd644838473 (patch)
tree9b33c45aaf3d9617b0e56212e5f805165e09cdb0
parentc2522746f6c53c8ce9c80d66390828a7b067655a (diff)
downloadorg.eclipse.tcf-26c71dd7e1f1ace5cda3bfa409e19dd644838473.tar.gz
org.eclipse.tcf-26c71dd7e1f1ace5cda3bfa409e19dd644838473.tar.xz
org.eclipse.tcf-26c71dd7e1f1ace5cda3bfa409e19dd644838473.zip
Target Explorer: fix possible ArrayIndexOutOfBoundsException
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/panels/AbstractConfigurationPanel.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/panels/AbstractConfigurationPanel.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/panels/AbstractConfigurationPanel.java
index c69d03177..7f88bdb52 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/panels/AbstractConfigurationPanel.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/panels/AbstractConfigurationPanel.java
@@ -207,7 +207,7 @@ public abstract class AbstractConfigurationPanel extends AbstractWizardConfigura
if (hostString.length() != 0) {
String[] hostAttrs = hostString.split("\\:");//$NON-NLS-1$
- for (int j = 0; j < hostAttrs.length; j = j + 2) {
+ for (int j = 0; j < hostAttrs.length-1; j = j + 2) {
String key = hostAttrs[j];
String value = hostAttrs[j + 1];
attr.put(key, value);

Back to the top