mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 17:55:39 +02:00
Bug 328369 - Unexpected runtime error while computing a text hover
This commit is contained in:
parent
99c76ff666
commit
a76a17353c
1 changed files with 1 additions and 1 deletions
|
@ -611,7 +611,7 @@ public class CSourceHover extends AbstractCEditorTextHover {
|
||||||
|
|
||||||
String[] sourceLines= Strings.convertIntoLines(source);
|
String[] sourceLines= Strings.convertIntoLines(source);
|
||||||
String firstLine= sourceLines[0];
|
String firstLine= sourceLines[0];
|
||||||
if (!Character.isWhitespace(firstLine.charAt(0)))
|
if (firstLine.length() > 0 && !Character.isWhitespace(firstLine.charAt(0)))
|
||||||
sourceLines[0]= ""; //$NON-NLS-1$
|
sourceLines[0]= ""; //$NON-NLS-1$
|
||||||
Strings.trimIndentation(sourceLines, getTabWidth(), getTabWidth());
|
Strings.trimIndentation(sourceLines, getTabWidth(), getTabWidth());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue