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 210662 - ArrayIndexOutOfBoundsException: 0
Summary: ArrayIndexOutOfBoundsException: 0
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2
Hardware: All All
: P1 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-04 06:17 UTC by MackSix
Modified: 2012-04-04 13:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 186636


Attachments
stacktrace (6.50 KB, text/plain)
2012-04-04 06:17 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2012-04-04 06:17:46 UTC
Build: NetBeans IDE Dev (Build 201204030400)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows Vista

User Comments:
MackSix: 1.) Created New JavaSE Project. 2.) Created new JFrame. 3.) Checked Automatic Internationalization. This ArrayIndexOutOfBoundsException was thrown.




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 0
   at org.netbeans.modules.form.ResourceSupport$LocalePropertyEditor.getAsText(ResourceSupport.java:1887)
   at org.openide.explorer.propertysheet.RendererFactory$StringRenderer.reset(RendererFactory.java:973)
   at org.openide.explorer.propertysheet.RendererFactory$StringRenderer.connect(RendererFactory.java:936)
   at org.openide.explorer.propertysheet.RendererFactory.prepareString(RendererFactory.java:377)
   at org.openide.explorer.propertysheet.RendererFactory.getRenderer(RendererFactory.java:240)
   at org.openide.explorer.propertysheet.SheetCellRenderer.getTableCellRendererComponent(SheetCellRenderer.java:156)
Comment 1 MackSix 2012-04-04 06:17:49 UTC
Created attachment 117777 [details]
stacktrace
Comment 2 MackSix 2012-04-04 06:19:37 UTC
This happens when Automatic Internationalization is checked before any components are added to the JFrame.

Product Version: NetBeans IDE Dev (Build 201204030400)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 3 MackSix 2012-04-04 06:52:54 UTC
This works fine in 7.1.1. Regression -> P1
Comment 4 Jan Stola 2012-04-04 12:45:42 UTC
Reproducible.

This issue has been introduced recently by http://hg.netbeans.org/jet-main/rev/5b9ccd4d889f
Comment 5 Jan Stola 2012-04-04 13:31:30 UTC
Fixed.

Modified file: http://hg.netbeans.org/jet-main/rev/932a01064b42