1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

DebugTextHover.java: check if the result of 'evaluateExpression' is not null before trim it.

This commit is contained in:
Mikhail Khodjaiants 2003-10-14 15:57:18 +00:00
parent 239149c98e
commit 4af9a7f786
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,6 @@
2003-10-14 Mikhail Khodjaiants
* DebugTextHover.java: check if the result of 'evaluateExpression' is not null before trim it.
2003-10-06 Mikhail Khodjaiants
Mark the function arguments in the Variables View.
* icons\full\ovr16\argument_ovr.gif: new

View file

@ -90,11 +90,11 @@ public class DebugTextHover implements ITextHover
ICExpressionEvaluator ee = (ICExpressionEvaluator)target.getAdapter( ICExpressionEvaluator.class );
if ( ee.canEvaluate() )
{
String result = evaluateExpression( ee, expression ).trim();
String result = evaluateExpression( ee, expression );
try
{
if ( result != null )
appendVariable( buffer, expression, result, showDebugTarget ? target.getName() : null );
appendVariable( buffer, expression, result.trim(), showDebugTarget ? target.getName() : null );
}
catch( DebugException x )
{