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 14750 - Removing of module fires java.lang.ArrayIndexOutOfBoundsException
Summary: Removing of module fires java.lang.ArrayIndexOutOfBoundsException
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: -FFJ-
Hardware: PC Windows 95/98
: P4 blocker (vote)
Assignee: akemr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-23 18:32 UTC by Jaromir Uhrik
Modified: 2003-06-30 13:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2001-08-23 18:32:04 UTC
[Pilsen FCS CE 010817; jdk1.3.1]
Steps to reproduce:
1.Start Update Center wizard and select Manually Downloaded modules
2.Press Next and add some modules
3.Remove the last of them by pressing of the Remove button
4.Hold SHIFT on keyboard and click to some module. Then press Remove button so 
the exception below wil be shown.

Thu Aug 23 19:30:45 CEST 2001: java.lang.ArrayIndexOutOfBoundsException: 1 >= 1
java.lang.ArrayIndexOutOfBoundsException: 1 >= 1
        at java.util.Vector.elementAt(Vector.java:417)
        at javax.swing.DefaultListModel.getElementAt(DefaultListModel.java:70)
        at javax.swing.JList.getSelectedValues(JList.java:1364)
        at 
org.netbeans.modules.autoupdate.SelectModulesPanel.removeButtonActionPerformed
(SelectModulesPanel.java:160)
        at org.netbeans.modules.autoupdate.SelectModulesPanel.access$200
(SelectModulesPanel.java:35)
        at org.netbeans.modules.autoupdate.SelectModulesPanel$2.actionPerformed
(SelectModulesPanel.java:132)
        at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1450)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
(AbstractButton.java:1504)
        at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:378)
        at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:250)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased
(BasicButtonListener.java:216)
        at java.awt.Component.processMouseEvent(Component.java:3715)
        at java.awt.Component.processEvent(Component.java:3544)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Component.dispatchEventImpl(Component.java:2593)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Component.dispatchEvent(Component.java:2497)
        at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:2451)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
        at java.awt.Container.dispatchEventImpl(Container.java:1200)
        at java.awt.Window.dispatchEventImpl(Window.java:914)
        at java.awt.Component.dispatchEvent(Component.java:2497)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:131)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
Comment 1 akemr 2001-10-02 10:00:18 UTC
Fixed in main trunk
Comment 2 Jaromir Uhrik 2001-10-11 15:42:53 UTC
Reopening the issue - it is easy to reproduced it in dev33 build 
#200110110100; jdk1.3.1
Comment 3 akemr 2001-10-12 10:55:08 UTC
Hmm, actually its probably bug in JDK.
I fired bug to BugParade.

Waiting to evaluation..
Comment 4 akemr 2001-10-12 11:11:32 UTC
Fixed in main trunk.
I made workaround to be sure previous selection is cleared.
Comment 5 Jaromir Uhrik 2001-10-16 10:39:16 UTC
Works in dev33 build #200110150818.
Comment 6 Quality Engineering 2003-06-30 13:51:44 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.