Prevent NPE on getPathSize for non-existant file #29

Merged
merged 1 commit into from May 24, 2012

Conversation

Projects
None yet
2 participants
Contributor

gabrielreid commented May 24, 2012

Some FileSystem implementations (i.e. DistributedFileSystem) return
null (instead of throwing a FileNotFoundException) when listStatus
is called with a non-existant path. The null situation is now handled
instead of allowing an NPE to be thrown, and a warning is logged.

Prevent NPE on getPathSize for non-existant file
Some FileSystem implementations (i.e. DistributedFileSystem) return
null (instead of throwing a FileNotFoundException) when listStatus
is called with a non-existant path. The null situation is now handled
instead of allowing an NPE to be thrown, and a warning is logged.

jwills added a commit that referenced this pull request May 24, 2012

Merge pull request #29 from gabrielreid/sourcetarget-npe
Prevent NPE on getPathSize for non-existant file

@jwills jwills merged commit 9397eda into cloudera:master May 24, 2012

Contributor

jwills commented May 24, 2012

Awesome-- thanks man.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment