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.
(current sources of java module), JDK1.4.2_04. During scanning of the classpath, the attached NullPointerException can be thrown (and shown). The problem is that if the scanning tries to list files in a directory, and the user do not have sufficient rights to list this directory, File.listFiles may return null. The problems is that the org.netbeans.modules.javacore.scanning.FileEntry is not able to handle null from listFiles. I propose to fix this by adding a test for null. This situation (insufficient rights for directory list) can simply happen if a classpath is guessed for some files in a Favourites tab, etc. (I am making it P2 as it breaks some of my tests.)
Created attachment 16185 [details] The NullPointerException.
Checking in org/netbeans/modules/javacore/scanning/FileEntry.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/scanning/FileEntry.java,v <-- FileEntry.java new revision: 1.2; previous revision: 1.1 done
Revision 1.2 of FileEntry seems OK.
Reorganization of java component