This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 241462

Summary: IndexOutOfBoundsException: len=-1 < 0: nextLineStartOffset=71736, lineStartOffset=71737, preScan=0
Product: editor Reporter: Exceptions Reporter <exceptions_reporter>
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 207333
Attachments: stacktrace

Description Exceptions Reporter 2014-02-05 22:31:38 UTC
This bug was originally marked as duplicate of bug 238718, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Mac OS X

User Comments:
GUEST: Pressing Command+Z to undo changes.




Stacktrace: 
java.lang.IndexOutOfBoundsException: len=-1 < 0: nextLineStartOffset=71736, lineStartOffset=71737, preScan=0
   at org.netbeans.editor.FixLineSyntaxState.fixSyntaxStateInfos(FixLineSyntaxState.java:472)
   at org.netbeans.editor.FixLineSyntaxState.update(FixLineSyntaxState.java:303)
   at org.netbeans.editor.FixLineSyntaxState$BeforeLineUndo.undo(FixLineSyntaxState.java:615)
   at org.netbeans.editor.BaseDocumentEvent.undo(BaseDocumentEvent.java:281)
   at org.netbeans.editor.GuardedDocumentEvent.undo(GuardedDocumentEvent.java:72)
   at org.netbeans.modules.editor.lib2.document.StableCompoundEdit.undo(StableCompoundEdit.java:93)
Comment 1 Exceptions Reporter 2014-02-05 22:31:40 UTC
Created attachment 144850 [details]
stacktrace
Comment 2 Milutin Kristofic 2015-06-29 13:22:31 UTC
It seems to be fixed, since reports are only from Netbeans 8.0 Beta