javax.swing.text.BadLocationException: end=377 > length()=291
at org.netbeans.lib.editor.util.swing.DocumentUtilities.getText(DocumentUtilities.java:329)
at org.netbeans.editor.CustomFoldManager.scanToken(CustomFoldManager.java:443)
at org.netbeans.editor.CustomFoldManager.getMarkList(CustomFoldManager.java:248)
at org.netbeans.editor.CustomFoldManager.processTokenList(CustomFoldManager.java:266)
at org.netbeans.editor.CustomFoldManager.updateFolds(CustomFoldManager.java:327)
at org.netbeans.editor.CustomFoldManager.initFolds(CustomFoldManager.java:93)
at org.netbeans.modules.editor.fold.FoldOperationImpl.initFolds(FoldOperationImpl.java:118)
at org.netbeans.modules.editor.fold.FoldHierarchyExecution.rebuildManagers(FoldHierarchyExecution.java:665)
at org.netbeans.modules.editor.fold.FoldHierarchyExecution.rebuild(FoldHierarchyExecution.java:598)
at org.netbeans.modules.editor.fold.FoldHierarchyExecution$1.propertyChange(FoldHierarchyExecution.java:685)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270)
at java.awt.Component.firePropertyChange(Component.java:7277)
at javax.swing.text.JTextComponent.setDocument(JTextComponent.java:412)
at org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView.setSource2(EditableDiffView.java:869)
at org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView.access$500(EditableDiffView.java:99)
at org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView$1.run(EditableDiffView.java:215)
[catch] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)