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 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)
Created attachment 117777 [details] stacktrace
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)
This works fine in 7.1.1. Regression -> P1
Reproducible. This issue has been introduced recently by http://hg.netbeans.org/jet-main/rev/5b9ccd4d889f
Fixed. Modified file: http://hg.netbeans.org/jet-main/rev/932a01064b42