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.
java.lang.ArrayIndexOutOfBoundsException: -1 at org.netbeans.lib.editor.view.GapObjectArray.getIte m(GapObjectArray.java:78) at org.netbeans.lib.editor.view.GapBoxViewChildren.ge tChild(GapBoxViewChildren.java:189) at org.netbeans.lib.editor.view.GapBoxView.getChild (GapBoxView.java:1574) at org.netbeans.lib.editor.view.GapBoxView.getView (GapBoxView.java:458) at org.netbeans.editor.CodeFoldingSideBar.collectPain tInfos(CodeFoldingSideBar.java:335) at org.netbeans.editor.CodeFoldingSideBar.getPaintInf o(CodeFoldingSideBar.java:380) at org.netbeans.editor.CodeFoldingSideBar.paintCompon ent(CodeFoldingSideBar.java:450) at javax.swing.JComponent.paint (JComponent.java:808) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JViewport.paint (JViewport.java:722) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JComponent.paintChildren (JComponent.java:647) at javax.swing.JComponent.paint (JComponent.java:817) at javax.swing.JComponent.paintWithOffscreenBuffer (JComponent.java:4787) at javax.swing.JComponent.paintDoubleBuffered (JComponent.java:4740) at javax.swing.JComponent._paintImmediately (JComponent.java:4685) at javax.swing.JComponent.paintImmediately (JComponent.java:4488) at javax.swing.RepaintManager.paintDirtyRegions (RepaintManager.java:410) [catch] at javax.swing.SystemEventQueueUtilities$ComponentWor kRequest.run(SystemEventQueueUtilities.java:117) at java.awt.event.InvocationEvent.dispatch (InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent (EventQueue.java:454) at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:137) at java.awt.EventDispatchThread.run (EventDispatchThread.java:100)
we will fix it to promo D
*** Issue 41684 has been marked as a duplicate of this issue. ***
Increasing priority to P2 as the problem seems to occur frequently. The workaround should be to close the actual editor file where the problem occurred and reopen it again.
Created attachment 14284 [details] diffed fix against release36 branch
Created attachment 14285 [details] binary patch of the fix.
Mila, as you can reproduce the problem... Could you please check the attached fix? Thanks. The attached zip contains the classes that should replace the particular ones in modules/ext/nb-editor.jar/org/netbeans/editor/CodeFoldingSideBar*.class
*** Issue 41936 has been marked as a duplicate of this issue. ***
After applying the binary patch I can no longer reproduce the problem. The patch seems to be OK and it does not seem to bring any regressions. We can fix it at least in trunk for now and apply it to nb36 fixes later as well.
fixed in [maintrunk] /cvs/editor/libsrc/org/netbeans/editor/CodeFoldingSideBar.java,v <-- CodeFoldingSideBar.java new revision: 1.13; previous revision: 1.12 done
*** Issue 44308 has been marked as a duplicate of this issue. ***
*** Issue 43858 has been marked as a duplicate of this issue. ***
*** Issue 45359 has been marked as a duplicate of this issue. ***
*** Issue 47016 has been marked as a duplicate of this issue. ***
*** Issue 49422 has been marked as a duplicate of this issue. ***
*** Issue 51027 has been marked as a duplicate of this issue. ***
*** Issue 51028 has been marked as a duplicate of this issue. ***
*** Issue 51485 has been marked as a duplicate of this issue. ***
*** Issue 52131 has been marked as a duplicate of this issue. ***
Verified in 200507131800.