mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Filter out the empty expressions when hovering.
This commit is contained in:
parent
6c738e9dcb
commit
1c8774e46c
1 changed files with 5 additions and 0 deletions
|
@ -67,6 +67,11 @@ public class DebugTextHover implements ITextHover
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
String expression = document.get( hoverRegion.getOffset(), hoverRegion.getLength() );
|
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 );
|
List targetList = new ArrayList( targets.length );
|
||||||
for ( int i = 0; i < targets.length; i++ )
|
for ( int i = 0; i < targets.length; i++ )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue