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

Was Throwing indexOutOfBound Exception for empty

strings.
This commit is contained in:
Alain Magloire 2003-04-20 23:55:43 +00:00
parent 3619fb6ec0
commit a95c438d10

View file

@ -223,7 +223,7 @@ public class CValue extends CDebugElement implements ICValue
end = result.length();
result = result.substring( 0, end );
}
else if ( result.charAt( result.length() - 1 ) == '\'' )
else if ( result.endsWith("'"))
{
int start = result.indexOf( '\'' );
if ( start != -1 )