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 245219

Summary: ArrayIndexOutOfBoundsException: -1
Product: guibuilder Reporter: Chiana
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED FIXED    
Severity: normal CC: dziquinatti
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 182245
Attachments: stacktrace

Description Chiana 2014-06-24 12:45:23 UTC
Build: NetBeans IDE Dev (Build 201406240001)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 7

User Comments:
dziquinatti: Resizing a component

Chiana: Was rezising a newly inserted JPanel

Chiana: Was resizing a JPanel, same as #182245




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: -1
   at java.util.ArrayList.elementData(ArrayList.java:400)
   at java.util.ArrayList.get(ArrayList.java:413)
   at org.netbeans.modules.form.layoutdesign.LayoutInterval.getSubInterval(LayoutInterval.java:475)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.mergeInclusionsInCommonSequence(LayoutFeeder.java:4514)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.mergeSequentialInclusions(LayoutFeeder.java:4304)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:459)
Comment 1 Chiana 2014-06-24 12:45:26 UTC
Created attachment 147762 [details]
stacktrace
Comment 2 Tomas Pavek 2015-10-02 12:39:58 UTC
http://hg.netbeans.org/jet-main/rev/842517658cb4
Comment 3 Tomas Pavek 2015-10-02 12:41:14 UTC
Fix not in 8.1.
Comment 4 Quality Engineering 2015-10-03 02:59:38 UTC
Integrated into 'main-silver', will be available in build *201510030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/842517658cb4
User: Tomas Pavek <tpavek@netbeans.org>
Log: #245219: simple check to avoid ArrayIndexOutOfBoundsException