Doug Cutting resolved HADOOP-97:
--------------------------------
Resolution: Fixed
Assign To: Konstantin Shvachko (was: Sameer Paranjpye)
I just committed this. I also changed the error message to print to standard error rather than standard output, and changed the exit code to be 1 when there's an error.
DFSShell.cat returns NullPointerException if file does not exist
----------------------------------------------------------------
Key: HADOOP-97
URL: http://issues.apache.org/jira/browse/HADOOP-97
Project: Hadoop
Type: Bug
Components: dfs
Reporter: Konstantin Shvachko
Assignee: Konstantin Shvachko
Attachments: DFSShell.patch
DFSShell.cat crashes with a NullPointerException if file to be displayed does not exist.
The bug is fixed in the attached patch, and the general exception handling in main() is added.
------------------------------------------------------------------
Key: HADOOP-97
URL: http://issues.apache.org/jira/browse/HADOOP-97
Project: Hadoop
Type: Bug
Components: dfs
Reporter: Konstantin Shvachko
Assignee: Konstantin Shvachko
Attachments: DFSShell.patch
DFSShell.cat crashes with a NullPointerException if file to be displayed does not exist.
The bug is fixed in the attached patch, and the general exception handling in main() is added.
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira