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 7.1 RC1 (Build 201111242103) VM: Java HotSpot(TM) Client VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08 OS: Linux User Comments: mps77: empty while expression expanded while (condition); while (condition) { } aldobrucale: Editing a java file Stacktrace: java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.elementData(ArrayList.java:371) at java.util.ArrayList.get(ArrayList.java:384) at org.netbeans.modules.tasklist.ui.FoldingTaskListModel$FoldingGroup.getTaskAt(FoldingTaskListModel.java:390) at org.netbeans.modules.tasklist.ui.FoldingTaskListModel.getTaskAtRow(FoldingTaskListModel.java:106) at org.netbeans.modules.tasklist.ui.TaskListModel.getValueAt(TaskListModel.java:126) at org.netbeans.modules.tasklist.ui.FoldingTaskListModel.getValueAt(FoldingTaskListModel.java:127)
Created attachment 113771 [details] stacktrace
fix: http://hg.netbeans.org/core-main/rev/0560619a7619
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/0560619a7619 User: Jan Peska <jpeska@netbeans.org> Log: Issue #205866 - [71cat] ArrayIndexOutOfBoundsException: -1 isGroupRow check has to be part of the sync block. If it is not, groups row count could change after this check and not-group-row (from before change) could appear as group-row -> AIOOBE: -1