Menu

#3 Null pointer exception in findFileResources( URL url)

open
nobody
None
5
2008-07-29
2008-07-29
Anonymous
No

Null pointer exception when running source from local disk. It appears that the url resouce string needs to be decoded before calling File.listFiles.

change:

private void findFileResources( URL url ) {

findFilesInDirectory( new File( url.toString().substring( FILE.length()) ) );

}

to:

private void findFileResources( URL url ) {

findFilesInDirectory( new File( convert( url.toString().substring( FILE.length())) ) );

}

Discussion


Log in to post a comment.