aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Tepavich2012-05-22 15:01:45 (EDT)
committerEugene Tarassov2012-05-23 18:10:32 (EDT)
commit15514a12599b48f9c829555444bb532b9bf8128e (patch)
treec77d9773a90b18789300fd67acaa4c692ddd5f0b
parent86f9644da25cddbf1680d2e1848f6f02fe1e8ec8 (diff)
downloadorg.eclipse.tcf-15514a12599b48f9c829555444bb532b9bf8128e.zip
org.eclipse.tcf-15514a12599b48f9c829555444bb532b9bf8128e.tar.gz
org.eclipse.tcf-15514a12599b48f9c829555444bb532b9bf8128e.tar.bz2
Fix for context query expression formatting validation.
-rw-r--r--plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFThreadFilterEditor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFThreadFilterEditor.java b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFThreadFilterEditor.java
index 1fed90f..7428a43 100644
--- a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFThreadFilterEditor.java
+++ b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFThreadFilterEditor.java
@@ -434,7 +434,8 @@ public class TCFThreadFilterEditor {
int equalsIndex = expression.indexOf('=', fromIndex);
int commaIndex = expression.indexOf(',', fromIndex);
int nextEqualsIndex = expression.indexOf('=',equalsIndex+1);
- if (commaIndex == lastIndex-1 || equalsIndex == -1 || equalsIndex == lastIndex-1) {
+ if (commaIndex == lastIndex-1 || equalsIndex == -1 || equalsIndex == lastIndex-1 ||
+ equalsIndex == 0 || commaIndex == 0) {
return true;
}
String testChar = expression.substring(equalsIndex-1, equalsIndex);