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 213938 - IndexOutOfBoundsException: Index: 0, Size: 0
Summary: IndexOutOfBoundsException: Index: 0, Size: 0
Status: RESOLVED INCOMPLETE
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-11 07:52 UTC by ytn01
Modified: 2012-06-19 12:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 189307


Attachments
stacktrace (4.12 KB, text/plain)
2012-06-11 07:52 UTC, ytn01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ytn01 2012-06-11 07:52:07 UTC
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)
Comment 1 ytn01 2012-06-11 07:52:12 UTC
Created attachment 120639 [details]
stacktrace
Comment 2 Tomas Pavek 2012-06-11 15:18:06 UTC
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.
Comment 3 ytn01 2012-06-19 12:14:29 UTC
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.