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.
Build: NetBeans IDE Dev (Build 201312190002) VM: Java HotSpot(TM) Client VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18 OS: Linux User Comments: earlsinclair123: Editor keeps geting exceptions! tbrunhoff: (severely) editing a new file, as in deleting lots of class members. Stacktrace: java.lang.Throwable at org.netbeans.modules.editor.fold.FoldChildren.insertImpl(FoldChildren.java:247) at org.netbeans.modules.editor.fold.FoldChildren.extractToChildren(FoldChildren.java:203) at org.netbeans.api.editor.fold.Fold.extractToChildren(Fold.java:357) at org.netbeans.api.editor.fold.FoldHierarchy$ApiPackageAccessorImpl.foldExtractToChildren(FoldHierarchy.java:394) at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.addFold(FoldHierarchyTransactionImpl.java:956) at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.addFold(FoldHierarchyTransactionImpl.java:647)
Created attachment 144166 [details] stacktrace
*** This bug has been marked as a duplicate of bug 239728 ***
Apologies, wrong classification. According to logs in all 3 reports, the CPP fold manager attempts to insert a fold that extends beyond the actual getComponent().getDocument().getLength() (length + 1), which is illegal.
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=206686
All reports are older than 2014-01-28 where last noticeable change to the fold update mechanism was added. Most probably fixed along with issue #240755 - please try in a recent build, but wait for fix #241213 to propagate.