mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Check if the string representation of a value is not null before trimming it.
This commit is contained in:
parent
6ee3315f3b
commit
f1b59465a3
1 changed files with 2 additions and 1 deletions
|
@ -564,8 +564,9 @@ public class CDTDebugModelPresentation extends LabelProvider implements IDebugMo
|
|||
}
|
||||
catch( DebugException e ) {
|
||||
}
|
||||
String valueString = value.getValueString().trim();
|
||||
String valueString = value.getValueString();
|
||||
if ( valueString != null ) {
|
||||
valueString = valueString.trim();
|
||||
if ( type != null && type.isCharacter() ) {
|
||||
if ( valueString.length() == 0 )
|
||||
valueString = "."; //$NON-NLS-1$
|
||||
|
|
Loading…
Add table
Reference in a new issue