mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inspection view: npe in preview editor while folding append EA-89543
This commit is contained in:
+1
@@ -127,6 +127,7 @@ public class ProblemPreviewEditorPresentation {
|
||||
}
|
||||
|
||||
private boolean appendFoldings(Segment toShowRange) {
|
||||
if (toShowRange == null) return false;
|
||||
boolean isUpdated = false;
|
||||
final int startLine = Math.max(0, myDocument.getLineNumber(toShowRange.getStartOffset()) - 1);
|
||||
final int endLine = Math.min(myDocument.getLineCount(), myDocument.getLineNumber(toShowRange.getEndOffset()) + 2);
|
||||
|
||||
Reference in New Issue
Block a user