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.
When I am in the navigation tree and navigate to some class, then I unmount the filesystem that the class resides in, I get infinite sequence of NPEs (see the attached stacktrace). Similar exceptions occur when the metadata updating is in progress while unmounting the filesystem.
Created attachment 10320 [details] NPE stacktrace
I get a different stacktrace when unmounting a filesystem. I see five apparently identical copies. java.lang.NullPointerException at org.netbeans.mdr.handlers.InstanceHandler._handleGetR(InstanceHandler.java:103) at org.netbeans.jmi.java.source.JavaSource$Impl.getJavaPackage(Unknown Source) at org.netbeans.modules.java.bridge.SourceElementImpl.getPackage(SourceElementImpl.java:79) at org.netbeans.modules.java.bridge.SrcElementImpl.getPackage(SrcElementImpl.java:162) at org.openide.src.SourceElement.getPackage(SourceElement.java:100) at org.netbeans.modules.java.JavaNode.resolveIcons(JavaNode.java:552) at org.netbeans.modules.java.JavaNode$StateUpdater.actionPerformed(JavaNode.java:888) at javax.swing.Timer.fireActionPerformed(Timer.java:271) [catch] 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:448) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
IMO it is caused by the asynchronous updating JavaNode. JavaNode starts updating its state asnynchronously. Unfortunately when bridge delegates the work to the MDR, the storage is already umounted and the proper MOFIDs (or anything else) could not be found.
seems that with the new insfrastructure this is no longer a problem