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 8.1 (Build 201510222201) VM: Java HotSpot(TM) 64-Bit Server VM, 25.101-b13, Java(TM) SE Runtime Environment, 1.8.0_101-b13 OS: Windows 10 User Comments: GUEST: netbean auto create report about problem GUEST: IndexOutOfBoundsException: Index: 1, Size: 1 GUEST: Help to solve GUEST: IndexOutOfBoundsException: Index: 1, Size: 1 GUEST: a wojtekxm: I was creating a JSP file with if-else blocks. I was using auto-formatting (Alt+Shift+F) but the braces from if and else blocks were not aligned the way I wanted. GUEST: ! Stacktrace: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at java.util.LinkedList.checkElementIndex(LinkedList.java:555) at java.util.LinkedList.get(LinkedList.java:476) at org.netbeans.modules.java.source.save.Reindenter.getNewIndent(Reindenter.java:600) at org.netbeans.modules.java.source.save.Reindenter.reindent(Reindenter.java:167) at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:555) at org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:316)
Created attachment 162126 [details] stacktrace
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=223101
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/4d336579133c
Integrated into 'main-silver', will be available in build *201707230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4d336579133c User: Dusan Balek <dbalek@netbeans.org> Log: Issue #268113 - IndexOutOfBoundsException - fixed.