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 200060 - ArrayIndexOutOfBoundsException: -1
Summary: ArrayIndexOutOfBoundsException: -1
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-11 20:55 UTC by Jesse Glick
Modified: 2011-11-18 08:11 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 179829


Attachments
stacktrace (5.37 KB, text/plain)
2011-07-11 20:56 UTC, Jesse Glick
Details
stacktrace (5.37 KB, text/plain)
2011-07-12 10:01 UTC, Jesse Glick
Details
stacktrace (5.53 KB, text/plain)
2011-07-14 10:28 UTC, Exceptions Reporter
Details
stacktrace (2.99 KB, text/plain)
2011-07-22 15:47 UTC, Exceptions Reporter
Details
stacktrace (5.98 KB, text/plain)
2011-08-16 13:31 UTC, David Strupl
Details
stacktrace (5.33 KB, text/plain)
2011-08-25 11:23 UTC, Miloslav Metelka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2011-07-11 20:55:56 UTC
Build: NetBeans IDE Dev (Build 20110711-cefa995b7ee5)
VM: Java HotSpot(TM) Client VM, 21.0-b16, Java(TM) SE Runtime Environment, 1.7.0-b146
OS: Linux

User Comments:
jglick: Thrown over and over, making editor unusable. I had collapsed most blocks in a source file, expanding just a couple of methods.




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: -1
   at org.netbeans.lib.editor.util.GapList.get(GapList.java:462)
   at org.netbeans.modules.editor.lib2.view.ParagraphViewChildren.paintChildren(ParagraphViewChildren.java:450)
   at org.netbeans.modules.editor.lib2.view.ParagraphViewChildren.paint(ParagraphViewChildren.java:442)
   at org.netbeans.modules.editor.lib2.view.ParagraphView.paint(ParagraphView.java:301)
   at org.netbeans.modules.editor.lib2.view.DocumentViewChildren.paint(DocumentViewChildren.java:498)
   at org.netbeans.modules.editor.lib2.view.DocumentView.paint(DocumentView.java:1304)
Comment 1 Jesse Glick 2011-07-11 20:56:00 UTC
Created attachment 109379 [details]
stacktrace
Comment 2 Jesse Glick 2011-07-12 10:01:48 UTC
Created attachment 109392 [details]
stacktrace
Comment 3 Jesse Glick 2011-07-12 10:03:23 UTC
Getting it again on a different file, this time a form with some guarded blocks initially collapsed. Seems that something was broken recently with editor folding.
Comment 4 Exceptions Reporter 2011-07-14 10:28:58 UTC
Created attachment 109434 [details]
stacktrace
Comment 5 Exceptions Reporter 2011-07-22 15:47:21 UTC
Created attachment 109579 [details]
stacktrace

F3 search for term

ekenschaft@netbeans.org
Comment 6 David Strupl 2011-08-16 13:31:32 UTC
Created attachment 110010 [details]
stacktrace

Unfolding folded block.
Comment 7 Miloslav Metelka 2011-08-18 12:34:52 UTC
http://hg.netbeans.org/jet-main/rev/8821f75275ba
Comment 8 Miloslav Metelka 2011-08-18 12:36:20 UTC
Please ignore my last comment - the issue is not fixed yet. Thanks.
Comment 9 Miloslav Metelka 2011-08-25 11:23:28 UTC
Created attachment 110203 [details]
stacktrace
Comment 10 Exceptions Reporter 2011-08-25 11:23:42 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=179829
Comment 11 Miloslav Metelka 2011-08-25 11:27:46 UTC
http://hg.netbeans.org/jet-main/rev/c3c8f550ee51
Comment 12 Quality Engineering 2011-08-26 14:39:45 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/c3c8f550ee51
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #200060 - ArrayIndexOutOfBoundsException: -1 when expanding a fold (empty ParagraphView children).
Comment 13 Marian Mirilovic 2011-11-18 08:11:40 UTC
verified - no new exception was reported since the fix was delivered into trunk