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 - ArrayIndexOutOfBoundsException: -1
Summary: ArrayIndexOutOfBoundsException: -1
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-24 12:45 UTC by Chiana
Modified: 2015-10-03 02:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 182245


Attachments
stacktrace (3.35 KB, text/plain)
2014-06-24 12:45 UTC, Chiana
Details

Note You need to log in before you can comment on or make changes to this bug.
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