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:
parent
546a228e85
commit
7860f3c765
1 changed files with 10 additions and 1 deletions
|
@ -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);
|
||||
|
||||
/* Find the start of the second string. */
|
||||
|
@ -152,6 +157,10 @@ public abstract class Conditional extends Parent implements IConditional {
|
|||
}
|
||||
}
|
||||
}
|
||||
arg2 = line.substring(0, count);
|
||||
if (count > line.length()) {
|
||||
arg2 = EMPTY;
|
||||
} else {
|
||||
arg2 = line.substring(0, count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue