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 150403 - [65cat] IndexOutOfBoundsException: Index: 1, Size: 0
Summary: [65cat] IndexOutOfBoundsException: Index: 1, Size: 0
Status: RESOLVED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Lou Dasaro
URL: http://statistics.netbeans.org/except...
Keywords:
: 150574 165722 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-16 15:30 UTC by rajivderas
Modified: 2015-11-27 21:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 128965


Attachments
stacktrace (2.61 KB, text/plain)
2008-10-16 15:30 UTC, rajivderas
Details
stacktrace (2.61 KB, text/plain)
2008-10-23 17:24 UTC, sunbiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rajivderas 2008-10-16 15:30:33 UTC
Build: NetBeans IDE Dev (Build 20081015193613)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
        at java.util.ArrayList.add(ArrayList.java:367)
        at org.netbeans.modules.python.core.ui.models.PathListModel.moveDown(PathListModel.java:53)
        at org.netbeans.modules.python.project.ui.customizer.CustomizerPythonPath.moveDownPythonPathActionPerformed(CustomizerPythonPath.java:199)
        at org.netbeans.modules.python.project.ui.customizer.CustomizerPythonPath.access$300(CustomizerPythonPath.java:35)
        at org.netbeans.modules.python.project.ui.customizer.CustomizerPythonPath$4.actionPerformed(CustomizerPythonPath.java:103)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
Comment 1 rajivderas 2008-10-16 15:30:45 UTC
Created attachment 71994 [details]
stacktrace
Comment 2 sunbiz 2008-10-23 17:23:58 UTC
Build: NetBeans IDE 6.5 RC1 (Build 20081021155605)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32
OS: Windows Vista, 6.0, x86

User Comments: 
With just one thing in Python Path pressed the Move down button

Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
        at java.util.ArrayList.add(ArrayList.java:367)
        at org.netbeans.modules.python.core.ui.models.PathListModel.moveDown(PathListModel.java:53)
        at org.netbeans.modules.python.project.ui.customizer.CustomizerPythonPath.moveDownPythonPathActionPerformed(CustomizerPythonPath.java:199)
        at org.netbeans.modules.python.project.ui.customizer.CustomizerPythonPath.access$300(CustomizerPythonPath.java:35)
        at org.netbeans.modules.python.project.ui.customizer.CustomizerPythonPath$4.actionPerformed(CustomizerPythonPath.java:103)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
Comment 3 sunbiz 2008-10-23 17:24:13 UTC
Created attachment 72546 [details]
stacktrace
Comment 4 Lou Dasaro 2015-04-08 05:13:38 UTC
*** Bug 150574 has been marked as a duplicate of this bug. ***
Comment 5 Lou Dasaro 2015-04-08 05:14:36 UTC
*** Bug 165722 has been marked as a duplicate of this bug. ***
Comment 6 Lou Dasaro 2015-11-27 21:08:08 UTC
Added guard to prevent OOB exception.
http://hg.netbeans.org/main/contrib/rev/d1679e74e1cb
Available in Dev build after 20150526, and in .151118 release for IDE 8.1