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 48725

Summary: java.lang.ArrayIndexOutOfBoundsException if directories removed externally
Product: platform Reporter: _ gtzabari <gtzabari>
Component: ExplorerAssignee: Petr Nejedly <pnejedly>
Status: CLOSED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description _ gtzabari 2004-09-08 20:29:57 UTC
dev build 200409060100
Java 1.5


   I have a VCS view open. The current focus is
directory A with a few subdirectories, one of
which is B. I remove B externally, then invoke CVS
| Refresh. The following exception occurs. I know
normally Netbeans is not meant to handle external
changes but these sorts of things (files,
directories which Netbeans is not in the middle of
using move or get deleted) are bound to handle and
therefore Netbeans should handle it.


java.lang.ArrayIndexOutOfBoundsException: 7 >= 7
	at java.util.Vector.elementAt(Vector.java:432)
	at
javax.swing.tree.DefaultMutableTreeNode.getChildAt(DefaultMutableTreeNode.java:230)
	at
javax.swing.tree.VariableHeightLayoutCache.treeNodesChanged(VariableHeightLayoutCache.java:412)
	at
javax.swing.plaf.basic.BasicTreeUI$Handler.treeNodesChanged(BasicTreeUI.java:3600)
	at
javax.swing.tree.DefaultTreeModel.fireTreeNodesChanged(DefaultTreeModel.java:466)
	at
javax.swing.tree.DefaultTreeModel.nodesChanged(DefaultTreeModel.java:328)
	at
javax.swing.tree.DefaultTreeModel.nodeChanged(DefaultTreeModel.java:261)
	at
org.openide.explorer.view.NodeTreeModel$Listener.update(NodeTreeModel.java:160)
[catch] at
org.openide.explorer.view.VisualizerNode.run(VisualizerNode.java:354)
	at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at
java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Petr Nejedly 2004-09-16 14:03:56 UTC

*** This issue has been marked as a duplicate of 48993 ***
Comment 2 Tomas Danek 2005-07-14 16:25:14 UTC
verified as duplicate