java.lang.IndexOutOfBoundsException: Invalid line index=1085 >= lineCount=1085 at org.netbeans.modules.editor.lib2.document.LineRootElement.getElement(LineRootElement.java:84) at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.updateLineEndOffset(HighlightsViewFactory.java:301) at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.createView(HighlightsViewFactory.java:202) at org.netbeans.modules.editor.lib2.view.ViewBuilder.createNextView(ViewBuilder.java:893) at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:730) at org.netbeans.modules.editor.lib2.view.ViewBuilder.createReplaceRepaintViews(ViewBuilder.java:684) at org.netbeans.modules.editor.lib2.view.ViewUpdates.viewsRebuildOrMarkInvalidNeedsLock(ViewUpdates.java:421) at org.netbeans.modules.editor.lib2.view.DocumentViewOp$1.run(DocumentViewOp.java:283) at org.netbeans.modules.editor.lib2.view.DocumentView.runTransaction(DocumentView.java:226) at org.netbeans.modules.editor.lib2.view.DocumentView$1.run(DocumentView.java:239) at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1330) at org.netbeans.modules.editor.lib2.view.DocumentView.runReadLockTransaction(DocumentView.java:236) at org.netbeans.modules.editor.lib2.view.DocumentViewOp.viewsRebuildOrMarkInvalid(DocumentViewOp.java:279) at org.netbeans.modules.editor.lib2.view.ViewUpdates$RebuildViews.run(ViewUpdates.java:599) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2043) Caused: org.openide.util.RequestProcessor$FastItem: task failed due to: java.lang.IndexOutOfBoundsException: Invalid line index=1085 >= lineCount=1085