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 205866 - [71cat] ArrayIndexOutOfBoundsException: -1
Summary: [71cat] ArrayIndexOutOfBoundsException: -1
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Action Items (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jan Peska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-02 17:55 UTC by aldobrucale
Modified: 2011-12-06 12:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 152013


Attachments
stacktrace (4.08 KB, text/plain)
2011-12-02 17:55 UTC, aldobrucale
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aldobrucale 2011-12-02 17:55:17 UTC
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)
Comment 1 aldobrucale 2011-12-02 17:55:20 UTC
Created attachment 113771 [details]
stacktrace
Comment 2 Jan Peska 2011-12-05 10:48:15 UTC
fix: http://hg.netbeans.org/core-main/rev/0560619a7619
Comment 3 Quality Engineering 2011-12-06 12:14:22 UTC
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