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 7579 - ArrayIndexOutOfBoundsException in OpenLocalExplorerAction.performAction
Summary: ArrayIndexOutOfBoundsException in OpenLocalExplorerAction.performAction
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 minor (vote)
Assignee: issues@platform
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2000-09-05 09:18 UTC by pzajac
Modified: 2008-12-23 11:00 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 pzajac 2000-09-05 09:18:34 UTC
This exception occured on explorer from action. It is not possible to reproduce.
Input of perfomAction is array of Node. This array is empty.  Probable after
click on menuitem, node is deselected but OpenLocalExplorerAction is performed
with empty array of nodes.

java.lang.ArrayIndexOutOfBoundsException
        at
org.openide.actions.OpenLocalExplorerAction.performAction(OpenLocalExplorerAction.java:34)
        at org.openide.util.actions.NodeAction.performAction(NodeAction.java:93)
        at
org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:84)
        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.AbstractButton.doClick(AbstractButton.java:279)
        at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:886)
        at java.awt.Component.processMouseEvent(Component.java:3717)
        at java.awt.Component.processEvent(Component.java:3546)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Component.dispatchEventImpl(Component.java:2595)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        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:912)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:333)
        at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
Comment 1 pzajac 2000-12-19 14:38:59 UTC
fixed in [maintrunk]
Comment 2 Marian Mirilovic 2002-05-27 13:21:29 UTC
closed
Comment 3 Jesse Glick 2003-08-27 21:30:23 UTC
Will revert fix in trunk, should no longer be necessary -
performAction(Node[]) should not have to check same conditions as
enable(Node[]) already did.