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.
I have mounted few localfilesystems and one jar and then run a script that unmounted all of them and again tried to mount them. Following exception has been thrown java.lang.NullPointerException at org.netbeans.modules.java.codesync.SourceConnectionSupport.suspend(Unknown Source) at org.netbeans.modules.java.JavaDataObject.setValid(Unknown Source) at org.openide.loaders.DataObjectPool$Validator.removeInvalidObject(Unknown Source) at org.openide.loaders.DataObjectPool.removeInvalidObjects(Unknown Source) at org.openide.loaders.DataObjectPool.fileSystemRemoved(Unknown Source) at org.openide.filesystems.Repository.fireFileSystem(Repository.java:469) at org.openide.filesystems.Repository.removeFileSystem(Repository.java:210) at java.lang.reflect.Method.invoke(Native Method) at bsh.Reflect.invokeMethod(Reflect.java:217) at bsh.Reflect.invokeObjectMethod(Reflect.java:46) at bsh.Name.invokeMethod(Name.java:431) at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:29) at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:48) at bsh.BSHBlock.eval(BSHBlock.java:29) at bsh.BSHIfStatement.eval(BSHIfStatement.java:28) at bsh.BSHBlock.eval(BSHBlock.java:29) at bsh.BSHWhileStatement.eval(BSHWhileStatement.java:45) at bsh.BSHBlock.eval(BSHBlock.java:29) at bsh.BSHForStatement.eval(BSHForStatement.java:67) at bsh.Interpreter.eval(Interpreter.java:439) at bsh.Interpreter.eval(Interpreter.java:482) at org.netbeans.modules.scripting.BeanShellScriptType.exec(Unknown Source) at org.openide.execution.ScriptType.exec(Unknown Source) at org.netbeans.modules.scripting.ScriptSupport$1.run(Unknown Source) at org.netbeans.core.execution.RunClassThread.run(Unknown Source)
Created attachment 3059 [details] The script that I used
Sorry, there was clearly unchecked invocation on WeakReference.get() result :-(
None objects to this fix since NB 3.3. Marking as verified.
Resolved for 3.4.x or earlier, no new info since then -> closing.