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

Summary: ArrayIndexOutOfBoundsException in OpenLocalExplorerAction.performAction
Product: platform Reporter: pzajac <pzajac>
Component: -- Other --Assignee: issues@platform <issues>
Status: CLOSED FIXED    
Severity: minor Keywords: THREAD
Priority: P4    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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.