1
0
Fork 0
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:
Mikhail Khodjaiants 2004-10-19 20:02:30 +00:00
parent 6ee3315f3b
commit f1b59465a3

View file

@ -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$