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 241922 - Throwable at org.netbeans.modules.editor.fold.FoldChildren.insertImpl
Summary: Throwable at org.netbeans.modules.editor.fold.FoldChildren.insertImpl
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
: 242650 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-02-16 01:52 UTC by Exceptions Reporter
Modified: 2014-09-17 12:16 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 207649


Attachments
stacktrace (2.34 KB, text/plain)
2014-02-16 01:52 UTC, Exceptions Reporter
Details
stacktrace (2.49 KB, text/plain)
2014-02-28 17:51 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-02-16 01:52:45 UTC
This bug was originally marked as duplicate of bug 238175, 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.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Mac OS X

User Comments:
GUEST: editing file ...

GUEST: Writing C++ code for Windows on a Mac.  No attempt to compile and run.

vv159170: editing in file

petrk: edited code

GUEST: Nothing, just typed code.




Stacktrace: 
java.lang.Throwable
   at org.netbeans.modules.editor.fold.FoldChildren.insertImpl(FoldChildren.java:247)
   at org.netbeans.modules.editor.fold.FoldChildren.insert(FoldChildren.java:147)
   at org.netbeans.api.editor.fold.Fold.extractToChildren(Fold.java:362)
   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 Exceptions Reporter 2014-02-16 01:52:47 UTC
Created attachment 145240 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2014-02-28 17:51:20 UTC
Created attachment 145674 [details]
stacktrace

edit file
Comment 3 Exceptions Reporter 2014-02-28 17:51:24 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=207649
Comment 4 Svata Dedic 2014-07-14 14:17:58 UTC
*** Bug 242650 has been marked as a duplicate of this bug. ***
Comment 5 Svata Dedic 2014-07-30 14:02:05 UTC
Please look at the dumped hierarchy and messags. The document has length X and the root fold extends from 0 to X, while the to-be-added fold ends at X + 1.
Comment 6 Alexander Simon 2014-08-08 08:55:28 UTC
45 reports => P2
Comment 7 Alexander Simon 2014-08-08 12:23:44 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/c75d3110b9c4
Comment 8 Quality Engineering 2014-08-09 05:02:32 UTC
Integrated into 'main-silver', will be available in build *201408090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c75d3110b9c4
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug 241922 - Throwable at org.netbeans.modules.editor.fold.FoldChildren.insertImpl
Comment 9 Alexander Pepin 2014-08-12 15:41:49 UTC
Can not reproduce the exception in trunk build 20140812.
Comment 10 Quality Engineering 2014-09-17 12:16:14 UTC
Integrated into 'releases/release801', will be available in build *201409171118* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/7278f4f31985
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug 241922 - Throwable at org.netbeans.modules.editor.fold.FoldChildren.insertImpl
(transplanted from c75d3110b9c48ddcb6b742aa66fc4af0cce6b139)