mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
IndexOutOfBound Exception fix
This commit is contained in:
parent
f6c5d3e357
commit
8ef916c2ff
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ public class CSourceHover extends AbstractCEditorTextHover {
|
|||
return null;
|
||||
}
|
||||
String source= ((ISourceReference) curr).getSource();
|
||||
if (source == null)
|
||||
if (source == null || source.trim().length() == 0)
|
||||
return null;
|
||||
|
||||
source= removeLeadingComments(source);
|
||||
|
|
Loading…
Add table
Reference in a new issue