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 39928 - When I have an XML open and click on the Navigator I get an IndexOutOfBoundsException
Summary: When I have an XML open and click on the Navigator I get an IndexOutOfBoundsE...
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Workspace Switcher (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-10 21:32 UTC by javaiware
Modified: 2004-07-29 03:11 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 javaiware 2004-02-10 21:32:48 UTC
I have an ANT script (build.xml) open in the 
editor window as well as the Navigator window. 
Now when I click on the Navigator, I get the 
IndexOutOfBoundsException below.

Iwan
---

java.lang.IndexOutOfBoundsException: Index: -1
	at java.util.Collections$EmptyList.get
(Collections.java:2147)
	at 
org.netbeans.modules.navigator.LookList$LookListM
odel.getElementAt(LookList.java:360)
	at 
org.netbeans.modules.navigator.LookList.tryAction
(LookList.java:298)
	at 
org.netbeans.modules.navigator.LookList.access$40
0(LookList.java:67)
	at 
org.netbeans.modules.navigator.LookList$NavAction
Listener.mouseClicked(LookList.java:333)
	at 
java.awt.AWTEventMulticaster.mouseClicked
(AWTEventMulticaster.java:212)
	at java.awt.Component.processMouseEvent
(Component.java:5103)
	at 
org.netbeans.modules.navigator.LookList.processMo
useEvent(LookList.java:291)
	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.pumpOneEventForHiera
rchy(EventDispatchThread.java:201)
	at 
java.awt.EventDispatchThread.pumpEventsForHierarc
hy(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)
Comment 1 _ tboudreau 2004-03-11 11:52:58 UTC
Okay, I've got this fixed locally - I need to update the build script due to some changes 
made to the main netbeans build in the last few days, it should be possible to get the fix 
live in autoupdate in a day or two.
Comment 2 _ tboudreau 2004-07-29 03:11:43 UTC
This is fixed.

BTW, until we can get it back up on auto update, there are jars/nbms of navigator, et. al., 
available on http://workspaceswitcher.netbeans.org under the files section.