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:
parent
3619fb6ec0
commit
a95c438d10
1 changed files with 1 additions and 1 deletions
|
@ -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 )
|
||||
|
|
Loading…
Add table
Reference in a new issue