1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Filter out the empty expressions when hovering.

This commit is contained in:
Mikhail Khodjaiants 2002-10-07 20:25:14 +00:00
parent 6c738e9dcb
commit 1c8774e46c

View file

@ -67,6 +67,11 @@ public class DebugTextHover implements ITextHover
return null;
String expression = document.get( hoverRegion.getOffset(), hoverRegion.getLength() );
if ( expression == null )
return null;
expression = expression.trim();
if ( expression.length() == 0 )
return null;
List targetList = new ArrayList( targets.length );
for ( int i = 0; i < targets.length; i++ )
{