[ https://issues.apache.org/jira/browse/HADOOP-7174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010228#comment-13010228 ]
Daryn Sharp commented on HADOOP-7174: ------------------------------------- Looks good. Two comments: 1) I'd suggest throwing a more posix error string like srcPath + ": No such file or directory" 2) Should test the exit code of shell.run() to ensure it's non-zero upon failure. If it happens to return 0, and it's a non-trivial fix, I'm universally addressing it via HADOOP-7176. > null is displayed in the console,if the src path is invalid while doing > copyToLocal operation from commandLine > -------------------------------------------------------------------------------------------------------------- > > Key: HADOOP-7174 > URL: https://issues.apache.org/jira/browse/HADOOP-7174 > Project: Hadoop Common > Issue Type: Bug > Reporter: Uma Maheswara Rao G > Assignee: Uma Maheswara Rao G > Priority: Minor > Attachments: HADOOP-7174.patch > > > When we perform copyToLocal operations from commandLine and if src Path is > invalid > srcFS.globStatus(srcpath) will return null. So, when we find the length of > resulted value, it will *throw NullPointerException*. > Since we are handling generic exception , it will display null as the > message. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira