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.
Netbeans 5.5 Behavior: 1) Open a project, create a new folder 2) Create a java/Schema/XML file. Please note that this should be the only file in the package 3) Open the file. The Navigator window shows the relevant content 4) Delete the file. 5) The Navigator is empty, displays "No view available" Netbeans 6.0 M9 behavior: 1) Open a project, create a new folder 2) Create a java/Schema/XML file. Please note that this should be the only file in the package 3) Open the file. The Navigator window shows the relevant content 4) Delete the file. 5) The navigaor doesn refresh and still shows the methods in case of java file, elements in case of schema/xml file. If you double-click anywhere in the navigator, you get the following error: java.lang.NullPointerException at org.netbeans.api.java.source.UiUtils.getOffset(UiUtils.java:326) at org.netbeans.api.java.source.UiUtils.getOpenInfo(UiUtils.java:193) at org.netbeans.api.java.source.UiUtils.open(UiUtils.java:95) at org.netbeans.modules.java.navigation.actions.OpenAction.actionPerformed(OpenAction.java:68) at org.openide.explorer.view.TreeView$PopupSupport.mouseClicked(TreeView.java:1396) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211) at java.awt.Component.processMouseEvent(Component.java:5504) at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) at java.awt.Component.processEvent(Component.java:5266) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3968) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1778) at java.awt.Component.dispatchEvent(Component.java:3803) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) 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) I think the Netbeans5.5 behavior was right one. If a file is deleted then the navigator should not show the deleted file's content.
*** Issue 105068 has been marked as a duplicate of this issue. ***
*** Issue 105175 has been marked as a duplicate of this issue. ***
fixed in main trunk: Checking in NavigatorController.java; /cvs/core/navigator/src/org/netbeans/modules/navigator/NavigatorController.java,v <-- NavigatorController.java new revision: 1.22; previous revision: 1.21 done
*** Issue 98769 has been marked as a duplicate of this issue. ***