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 201218 - IndexOutOfBoundsException: index=0 >= size=0
Summary: IndexOutOfBoundsException: index=0 >= size=0
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-22 15:10 UTC by Petr Somol
Modified: 2012-11-18 20:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 179893


Attachments
stacktrace (2.85 KB, text/plain)
2011-08-22 15:10 UTC, Petr Somol
Details
stacktrace (6.23 KB, text/plain)
2012-11-18 20:16 UTC, simpatico
Details
stacktrace (6.41 KB, text/plain)
2012-11-18 20:19 UTC, simpatico
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Somol 2011-08-22 15:10:45 UTC
Build: NetBeans IDE Dev (Build 20110822-126e92d293cf)
VM: Java HotSpot(TM) Client VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: Windows 7

User Comments:
GUEST: coding some c, pressing undo a few times.

GUEST: ?????????

GUEST: ????

psomol: searched for "toolTipText" string using the Find toolbar in a java source of a form class. Result was found in generated protected block, immediately after the block has been displayed the exception fired.

GUEST: paste JS's code




Stacktrace: 
java.lang.IndexOutOfBoundsException: index=0 >= size=0
   at org.netbeans.modules.editor.lib2.highlighting.HighlightsList.get(HighlightsList.java:107)
   at org.netbeans.modules.editor.lib2.view.ViewPaintHighlights.updatePH(ViewPaintHighlights.java:216)
   at org.netbeans.modules.editor.lib2.view.ViewPaintHighlights.<init>(ViewPaintHighlights.java:99)
   at org.netbeans.modules.editor.lib2.view.DocumentViewChildren.paint(DocumentViewChildren.java:492)
   at org.netbeans.modules.editor.lib2.view.DocumentView.paint(DocumentView.java:663)
   at org.netbeans.modules.editor.lib2.view.EditorView.paint(EditorView.java:162)
Comment 1 Petr Somol 2011-08-22 15:10:49 UTC
Created attachment 110135 [details]
stacktrace
Comment 2 David Strupl 2012-11-06 15:10:05 UTC
As this is no longer happening I am closing as works for me.
Comment 3 simpatico 2012-11-18 20:16:32 UTC
Created attachment 128015 [details]
stacktrace
Comment 4 simpatico 2012-11-18 20:19:32 UTC
Created attachment 128016 [details]
stacktrace