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.
[ BUILD # : beta1 ] [ JDK VERSION : J2SE 1.4.2_05 ] Got this exception shortly after trying to change the name of a package on the Projects window. Null ptr exceptions also seen after right clicking on an object (on the Projects window) and selecting Properties. java.lang.NullPointerException at org.netbeans.spi.java.project.support.ui.PackageViewChildren$PackageNode.getName(PackageViewChildren.java:436) at org.openide.nodes.FilterNode.getName(FilterNode.java:413) at org.openide.nodes.Node.toString(Node.java:1415) at org.openide.util.lookup.InstanceContent$SimpleItem.getId(InstanceContent.java:145) at org.openide.util.actions.NodeAction$NodesL.resultChanged(NodeAction.java:332) at org.openide.util.lookup.AbstractLookup.notifyListeners(AbstractLookup.java:405) at org.openide.util.lookup.SimpleProxyLookup$ProxyResult.resultChanged(SimpleProxyLookup.java:215) at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:383) at $Proxy6.resultChanged(Unknown Source) at org.openide.util.lookup.AbstractLookup.notifyListeners(AbstractLookup.java:405) at org.openide.util.lookup.ProxyLookup$R.resultChanged(ProxyLookup.java:406) at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:109) at org.openide.explorer.DefaultEMLookup.updateLookups(DefaultEMLookup.java:96) at org.openide.explorer.DefaultEMLookup.propertyChange(DefaultEMLookup.java:131) at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:131) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:252) at org.openide.explorer.ExplorerManager.setSelectedNodes(ExplorerManager.java:219) at org.openide.explorer.ExplorerManager.setSelectedNodes1(ExplorerManager.java:355) at org.openide.explorer.ExplorerManager.setExploredContextAndSelection(ExplorerManager.java:320) at org.openide.explorer.view.BeanTreeView.selectionChanged(BeanTreeView.java:88) at org.openide.explorer.view.TreeView.callSelectionChanged(TreeView.java:633) at org.openide.explorer.view.TreeView$TreePropertyListener.run(TreeView.java:985) at org.openide.util.Mutex.postRequest(Mutex.java:866) at org.openide.util.Mutex.postReadRequest(Mutex.java:347) at org.openide.explorer.view.TreeView$TreePropertyListener.valueChanged(TreeView.java:955) at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:629) at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1076) at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:287) at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:170) at javax.swing.JTree.setSelectionPath(JTree.java:1168) at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2192) at javax.swing.plaf.basic.BasicTreeUI$MouseHandler.handleSelection(BasicTreeUI.java:2840) at javax.swing.plaf.basic.BasicTreeUI$MouseHandler.mousePressed(BasicTreeUI.java:2801) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:222) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221) at java.awt.Component.processMouseEvent(Component.java:5097) 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:3195) 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) 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) *********** Exception occurred ************ at 11:14 AM on Aug 20, 2004 java.lang.NullPointerException at org.netbeans.spi.java.project.support.ui.PackageViewChildren$PackageNode.computePackageName(PackageViewChildren.java:618) at org.netbeans.spi.java.project.support.ui.PackageViewChildren$PackageNode.getShortDescription(PackageViewChildren.java:563) at org.openide.nodes.FilterNode.getShortDescription(FilterNode.java:455) at org.openide.explorer.view.VisualizerNode.getShortDescription(VisualizerNode.java:146) at org.openide.explorer.view.TreeView$ExplorerTree.getToolTipText(TreeView.java:1557) at javax.swing.ToolTipManager$insideTimerAction.actionPerformed(ToolTipManager.java:683) at javax.swing.Timer.fireActionPerformed(Timer.java:271) at javax.swing.Timer$DoPostEvent.run(Timer.java:201) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) [catch] 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 got similar exception when doing Cut + Paste->Move. See Issue 48058 for reproducible steps.
Created attachment 17187 [details] NPE [dev from CVS, 040827]
PackageViewChildren should handle the case gracefully now. Please reopen if occures again.