1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix for PR 105898

This commit is contained in:
Alain Magloire 2005-08-03 16:54:46 +00:00
parent 546a228e85
commit 7860f3c765

View file

@ -119,6 +119,11 @@ public abstract class Conditional extends Parent implements IConditional {
} }
} }
if (count >= line.length()) {
arg1 = arg2 = EMPTY;
return;
}
arg1 = line.substring(1, count); arg1 = line.substring(1, count);
/* Find the start of the second string. */ /* Find the start of the second string. */
@ -152,6 +157,10 @@ public abstract class Conditional extends Parent implements IConditional {
} }
} }
} }
if (count > line.length()) {
arg2 = EMPTY;
} else {
arg2 = line.substring(0, count); arg2 = line.substring(0, count);
} }
}
} }