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.
Development build of NetBeans 3.3 #200111230645 on Windows 2000 with JDK 1.4b87 Description: ============ I appologize for not having a reproducable case but I have seen it at least twi- ce within one hour. There are several NullPointerExceptions thrown when unmoun- ting filesystem. However filesystem was unmounted successfully. Here is what I usually do: ========================== 1. Mount CVS filesystem using Built-in Client. 2. Use "Versioning Explorer" for a while. Close it. 3. Invoke "CVS|Annotate" on some file and play with it. Close it. 4. Unmount this filesystem and the exceptions should be thrown.
Created attachment 3565 [details] One of those exceptions while unmounting filesystem.
fixed in main trunk and release33 branch. (28/Nov/2001 build)
Hm, it really seems to be fixed. In other words I didn't see it again not once in one hour. :-) Verified in development build of NetBeans 3.4 #200111280100.
*** Issue 18152 has been marked as a duplicate of this issue. ***
*** Issue 18195 has been marked as a duplicate of this issue. ***
raising priority since it's serious issue. making it a 330 candidate fix.
*** Issue 18194 has been marked as a duplicate of this issue. ***
*** Issue 18222 has been marked as a duplicate of this issue. ***
The problem arose by a merge of 2 fixes. 1. a month ago, I was fixing the enabling/disabling of the module. For that reason I was putting weaklisteners to some places and also rewrote the removeNotify() method in JavacvsVrsioningSystem where I cleared references to the filesystem and it's cache. That is right since once the filesystem is unmounted, there's no reason for the reference to be kept around. 2. Lately I introduced the VCsRefresher class that does refreshing of filesystem on the background. This refreshing is stopped when the filesystem is unmounted, however if it's currently running it's not interrupted. And that's the problem here. Sometimes calls to methods that should be normally done only when the fs is mounted, are done also after unmounting, but at that time the reference is cleared and NPE is the result. The fix is actually easy and straighforward. ON each place where the filesystem or fscache variables are referenced, I check for the null value. The diff is attached. http://javacvs.netbeans.org/source/browse/javacvs/src/org/netbeans/modules/cvsclient/versioning/JavaCvsVersioningSystem.java.diff?r1=text&tr1=1.14&r2=text&tr2=1.15&f=h
integrated into the release330 branch as well.
*** Issue 18342 has been marked as a duplicate of this issue. ***
Resolved for 3.4.x or earlier, no new info since then -> closing.