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 39962 - IndexOutOfBoundException
Summary: IndexOutOfBoundException
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Workspace Switcher (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: workspaceswitcher@contrib
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-11 14:14 UTC by ehartmann
Modified: 2004-02-11 14:55 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 ehartmann 2004-02-11 14:14:14 UTC
When opening an xml file and clicking on the
navigator windows, the following exception occurs:

java.lang.IndexOutOfBoundsException: Index: -1
	at
java.util.Collections$EmptyList.get(Collections.java:2147)
	at
org.netbeans.modules.navigator.LookList$LookListModel.getElementAt(Unknown
Source)
	at
org.netbeans.modules.navigator.LookList.tryAction(Unknown
Source)
	at
org.netbeans.modules.navigator.LookList.access$400(Unknown
Source)
	at
org.netbeans.modules.navigator.LookList$NavActionListener.mouseClicked(Unknown
Source)
	at
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
	at
java.awt.Component.processMouseEvent(Component.java:5103)
	at
org.netbeans.modules.navigator.LookList.processMouseEvent(Unknown
Source)
	at
java.awt.Component.processEvent(Component.java:4897)
	at
java.awt.Container.processEvent(Container.java:1569)
	at
java.awt.Component.dispatchEventImpl(Component.java:3615)
	at
java.awt.Container.dispatchEventImpl(Container.java:1627)
	at
java.awt.Component.dispatchEvent(Component.java:3477)
	at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
	at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3207)
	at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
	at
java.awt.Container.dispatchEventImpl(Container.java:1613)
	at
java.awt.Window.dispatchEventImpl(Window.java:1606)
	at
java.awt.Component.dispatchEvent(Component.java:3477)
[catch] at
java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

I've compiled the navigator/javagator/beanigator
modules and I'm using them with Netbeans 3.6 Beta.
Comment 1 _ tboudreau 2004-02-11 14:32:33 UTC
Just fixed it.  A new version should be up tomorrow with the fix.
Comment 2 ehartmann 2004-02-11 14:55:48 UTC
Thanks, that's a really quick fix !