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 6.5 (Build 200811100001) VM: IBM J9 VM, 2.4, Java(TM) SE Runtime Environment, jvmxa6460-20081105_25433 OS: Linux, 2.6.27.9-159.fc10.x86_64, amd64 User Comments: mchristi: I have an output window that is minimized. I opened it and wanted to dock it into the same pane where my tasks window is. Then the GUI started to behave strangely (some parts weren't redrawn as expected). Stacktrace: java.lang.ArrayIndexOutOfBoundsException at java.util.AbstractCollection.toArray(AbstractCollection.java:334) at java.util.ArrayList.<init>(ArrayList.java:87) at org.netbeans.editor.CodeFoldingSideBar.getPaintInfo(CodeFoldingSideBar.java:409) at org.netbeans.editor.CodeFoldingSideBar.paintComponent(CodeFoldingSideBar.java:514) at javax.swing.JComponent.paint(JComponent.java:1038) at javax.swing.JComponent.paintChildren(JComponent.java:875)
Created attachment 75698 [details] stacktrace
Looks like a race condition. Perhaps CodeFoldingSideBar.Listener should repost events that are not delivered in AWT thread to that thread to make sure that cache and visibleMarks are accessed only from AWT.
*** Issue 157051 has been marked as a duplicate of this issue. ***
Marek, these are yours now ...
WFM - visibleMarks is only accessed from AWT (paintComponent, scheduled by invokeLater to AWT; mouse event handler called in AWT). Must have been fixed in the past.