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.
The editor will not display .bsh files. It only displays a gray area. The tab portion is displayed, but when trying to close it the following exception is raised: java.lang.NullPointerException at org.netbeans.modules.java.ui.NavigationView.removeNotify(NavigationView.java:181) at java.awt.Container.removeNotify(Container.java:2068) at javax.swing.JComponent.removeNotify(JComponent.java:4304) at java.awt.Container.removeNotify(Container.java:2068) at javax.swing.JComponent.removeNotify(JComponent.java:4304) at java.awt.Container.removeNotify(Container.java:2068) at javax.swing.JComponent.removeNotify(JComponent.java:4304) at java.awt.Container.removeNotify(Container.java:2068) at javax.swing.JComponent.removeNotify(JComponent.java:4304) at java.awt.Container.remove(Container.java:716) at java.awt.Container.remove(Container.java:769) at org.netbeans.core.windows.view.ui.tabcontrol.TabbedContainer.indicesChanged(TabbedContainer.java:342) at org.netbeans.core.windows.view.ui.tabcontrol.DefaultTabDataModel.fireIndicesChanged(DefaultTabDataModel.java:408) at org.netbeans.core.windows.view.ui.tabcontrol.DefaultTabDataModel.setTabs(DefaultTabDataModel.java:76) at org.netbeans.core.windows.view.ui.tabcontrol.TabbedAdapter.setTopComponents(TabbedAdapter.java:200) at org.netbeans.core.windows.view.ui.TabbedHandler.setTopComponents(TabbedHandler.java:122) at org.netbeans.core.windows.view.ui.AbstractModeContainer.setTopComponents(AbstractModeContainer.java:107) at org.netbeans.core.windows.view.ModeView.setTopComponents(ModeView.java:93) at org.netbeans.core.windows.view.ViewHierarchy.updateViewForAccessor(ViewHierarchy.java:195) at org.netbeans.core.windows.view.ViewHierarchy.updateViewForAccessor(ViewHierarchy.java:189) at org.netbeans.core.windows.view.ViewHierarchy.updateViewHierarchy(ViewHierarchy.java:115) at org.netbeans.core.windows.view.DefaultView.changeGUI(DefaultView.java:101) at org.netbeans.core.windows.ViewRequestor.dispatchRequest(ViewRequestor.java:239) at org.netbeans.core.windows.ViewRequestor.processRequest(ViewRequestor.java:218) at org.netbeans.core.windows.ViewRequestor.postRequest(ViewRequestor.java:153) at org.netbeans.core.windows.ViewRequestor.scheduleRequest(ViewRequestor.java:92) at org.netbeans.core.windows.Central.removeModeTopComponent(Central.java:688) at org.netbeans.core.windows.Central.userClosedTopComponent(Central.java:1408) at org.netbeans.core.windows.view.DefaultView.userClosedTopComponent(DefaultView.java:695) at org.netbeans.core.windows.view.ui.TabbedHandler.propertyChange(TabbedHandler.java:302) at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:264) at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:270) at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:232) at javax.swing.JComponent.firePropertyChange(JComponent.java:3819) at org.netbeans.core.windows.view.ui.tabcontrol.TabbedContainer.userRemovedTab(TabbedContainer.java:209) at org.netbeans.core.windows.view.ui.tabcontrol.plaf.AbstractTabsUI$2.actionPerformed(AbstractTabsUI.java:61) at org.netbeans.core.windows.view.ui.tabcontrol.plaf.TabsUI2$Controller2.possibleAction(TabsUI2.java:525) at org.netbeans.core.windows.view.ui.tabcontrol.plaf.TabsUI2$Controller2.mouseReleased(TabsUI2.java:583) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231) at java.awt.Component.processMouseEvent(Component.java:5100) 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:3198) 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)
Reassigning to java module for evaluation...
It is a bug of some component that implements ExplorerManager.Provider and returns null from its getExplorerManager() implementation. ExplorerManager.find should check and notify this. Otherwise it breaks public contract described in its javadoc. Anyway, Steve is this reproducible behavior? What build are you using? Your ide.log ({nb.userdir}/system) would be valuable. Please attach it here.
Created attachment 14395 [details] IDE Log File
The exception in the code (removeNotify(NavigationView.java:181)) seems to happen under several scenarios, so it might be general problem. Raising to P2. See Issue 41905 Issue 43659 Issue 44630 or Issue 42502 (marking 41691 as blocker for these issues, so we can track them all together)
Honzo, can we close this issue after your commit (issue 44661)?
*** Issue 41905 has been marked as a duplicate of this issue. ***
No, it does not relate.
I am not able to reproduce it with the latest development build. But for sure I added a check for null. /cvs/java/src/org/netbeans/modules/java/ui/NavigationView.java,v <-- NavigationView.java new revision: 1.23; previous revision: 1.22
*** Issue 114437 has been marked as a duplicate of this issue. ***