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 Dev (Build 201206020001) VM: Java HotSpot(TM) 64-Bit Server VM, 20.6-b01-415, Java(TM) SE Runtime Environment, 1.6.0_31-b04-415-11M3635 OS: Mac OS X User Comments: ytn01: Was working on the GUI Builer, with a JFrame form which had several components as part of it. Deleted around half of the components that were part of a JFrame. Deleted remaining components, the form become empty. Did one undo (command + Z), components deleted last came back. Did another undo again,... Excaption was generated Stacktrace: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at org.netbeans.modules.form.RADVisualContainer.getSubComponent(RADVisualContainer.java:325) at org.netbeans.modules.form.layoutsupport.LayoutSupportManager.getPrimaryComponent(LayoutSupportManager.java:862) at org.netbeans.modules.form.layoutsupport.delegates.NullLayoutSupport.createComponentCode(NullLayoutSupport.java:255) at org.netbeans.modules.form.layoutsupport.AbstractLayoutSupport.addComponents(AbstractLayoutSupport.java:477)
Created attachment 120639 [details] stacktrace
So the exception happened after you deleted components in null layout in two steps, then undone. I've been trying to reproduce this but no luck. Are you still able to repeat (reproduce) the steps that lead to the exception? Can you provide a test case or step by step description? Thanks.
Yes that was what I was doing when the exception got generated. Unfortuntely, I wasn't able to reproduce the exception again. :( (In reply to comment #2) > So the exception happened after you deleted components in null layout in two > steps, then undone. > > I've been trying to reproduce this but no luck. Are you still able to repeat > (reproduce) the steps that lead to the exception? Can you provide a test case > or step by step description? Thanks.