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 240725 - Throwable at org.netbeans.modules.editor.fold.FoldChildren.insertImpl
Summary: Throwable at org.netbeans.modules.editor.fold.FoldChildren.insertImpl
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on: 240755 241213
Blocks:
  Show dependency tree
 
Reported: 2014-01-20 23:52 UTC by tbrunhoff
Modified: 2014-02-03 10:35 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206686


Attachments
stacktrace (2.36 KB, text/plain)
2014-01-20 23:52 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2014-01-20 23:52:08 UTC
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)
Comment 1 tbrunhoff 2014-01-20 23:52:10 UTC
Created attachment 144166 [details]
stacktrace
Comment 2 Svata Dedic 2014-01-28 08:21:13 UTC

*** This bug has been marked as a duplicate of bug 239728 ***
Comment 3 Svata Dedic 2014-01-28 08:39:50 UTC
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.
Comment 4 Exceptions Reporter 2014-02-02 04:07:15 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=206686
Comment 5 Svata Dedic 2014-02-03 10:35:12 UTC
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.