mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-20 23:45:23 +02:00
DebugTextHover.java: check if the result of 'evaluateExpression' is not null before trim it.
This commit is contained in:
parent
239149c98e
commit
4af9a7f786
2 changed files with 5 additions and 2 deletions
|
@ -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
|
2003-10-06 Mikhail Khodjaiants
|
||||||
Mark the function arguments in the Variables View.
|
Mark the function arguments in the Variables View.
|
||||||
* icons\full\ovr16\argument_ovr.gif: new
|
* icons\full\ovr16\argument_ovr.gif: new
|
||||||
|
|
|
@ -90,11 +90,11 @@ public class DebugTextHover implements ITextHover
|
||||||
ICExpressionEvaluator ee = (ICExpressionEvaluator)target.getAdapter( ICExpressionEvaluator.class );
|
ICExpressionEvaluator ee = (ICExpressionEvaluator)target.getAdapter( ICExpressionEvaluator.class );
|
||||||
if ( ee.canEvaluate() )
|
if ( ee.canEvaluate() )
|
||||||
{
|
{
|
||||||
String result = evaluateExpression( ee, expression ).trim();
|
String result = evaluateExpression( ee, expression );
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if ( result != null )
|
if ( result != null )
|
||||||
appendVariable( buffer, expression, result, showDebugTarget ? target.getName() : null );
|
appendVariable( buffer, expression, result.trim(), showDebugTarget ? target.getName() : null );
|
||||||
}
|
}
|
||||||
catch( DebugException x )
|
catch( DebugException x )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue