History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: STS-350
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Tim Fennell
Reporter: Tim Fennell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Stripes

ResolverUtil can cause NullPointerException when directory is unlistable

Created: 26/Mar/07 07:29 PM   Updated: 26/Mar/07 07:37 PM
Component/s: None
Affects Version/s: Release 1.4.2
Fix Version/s: Release 1.4.3


 Description  « Hide
The javadoc for File.listFiles() states:

An array of abstract pathnames denoting the files and directories in the directory denoted by this abstract pathname. The array will be empty if the directory is empty. Returns null if this abstract pathname does not denote a directory, or if an I/O error occurs.

While rare, apparently this method does sometimes return null. We should add a null check at ResolverUtil:300 (in the 1.4.x branch). This also affects the head at ResolverUtil:255.

 All   Comments   Change History      Sort Order:
Tim Fennell [26/Mar/07 07:37 PM]
Fixed on both the head and the 1.4.x branch.