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.

Bug 16691 - NullPointer in SourceConnectionSupport.suspend
Summary: NullPointer in SourceConnectionSupport.suspend
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-18 16:08 UTC by Jaroslav Tulach
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The script that I used (604 bytes, text/plain)
2001-10-18 16:09 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2001-10-18 16:08:36 UTC
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)
Comment 1 Jaroslav Tulach 2001-10-18 16:09:06 UTC
Created attachment 3059 [details]
The script that I used
Comment 2 Svata Dedic 2001-10-18 16:51:47 UTC
Sorry, there was clearly unchecked invocation on WeakReference.get()
result :-(
Comment 3 Jan Becicka 2002-10-22 14:48:19 UTC
None objects to this fix since NB 3.3. Marking 
as verified.
Comment 4 Quality Engineering 2003-07-01 13:17:23 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.