javax.swing.text.BadLocationException: Invalid offset=-48 at org.netbeans.editor.DocumentContent.checkBounds(DocumentContent.java:270) at org.netbeans.editor.DocumentContent.getChars(DocumentContent.java:109) at javax.swing.text.AbstractDocument.getText(AbstractDocument.java:812) at org.netbeans.editor.LineRootElement.prepareSyntax(LineRootElement.java:228) at org.netbeans.editor.BaseDocument.prepareSyntax(BaseDocument.java:1229) at org.netbeans.editor.DrawEngine.initInfo(DrawEngine.java:238) at org.netbeans.editor.DrawEngine.draw(DrawEngine.java:1051) at org.netbeans.editor.LeafView.paintAreas(LeafView.java:154) at org.netbeans.editor.BaseView.paint(BaseView.java:129) at org.netbeans.editor.BaseTextUI$RootView.paint(BaseTextUI.java:602) at org.netbeans.editor.BaseTextUI.paintRegion(BaseTextUI.java:244) at org.netbeans.editor.EditorUI.paint(EditorUI.java:1499) at org.netbeans.editor.BaseTextUI.paint(BaseTextUI.java:222) at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142) at javax.swing.JComponent.paintComponent(JComponent.java:541) at javax.swing.JComponent.paint(JComponent.java:808) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at javax.swing.JViewport.paint(JViewport.java:722) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at org.netbeans.core.windows.frames.CloseButtonTabbedPane.paint(CloseButtonTabbedPane.java:209) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at org.netbeans.core.windows.frames.PerimeterPane.paint(PerimeterPane.java:103) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at javax.swing.JLayeredPane.paint(JLayeredPane.java:557) at javax.swing.JComponent.paintChildren(JComponent.java:647) at javax.swing.JComponent.paint(JComponent.java:817) at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4795) at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4748) at javax.swing.JComponent._paintImmediately(JComponent.java:4692) at javax.swing.JComponent.paintImmediately(JComponent.java:4495) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)