Closed mklaehn closed 8 years ago
Thanks, this should be fixed in master. Though, I would assume that after restarting NB you would not be able to reproduce the issue anyway because before listFiles, I (implicitly) check for the existance of the directory.
You are right, a Netbeans restart fixed this problem but while these NPEs popped up they were a inconvenience. BTW I did check other usages of File.listFiles(FileFilter) and they did seem okay in that they were called only when the File was a directory.
I should have done that too. Reviewed my usages of File.listFiles
and fixed the places where null checks were missing. Thanks.
after killing the cradle cache (by deleting it from disk) the following NPE was raised during a build process.
Javadoc for listFiles declares the return value null a possibility in case of I/O Error or the file used for listing is not a directory