1
0
Fork 0
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:
Alain Magloire 2004-06-01 21:11:00 +00:00
parent f6c5d3e357
commit 8ef916c2ff

View file

@ -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);