You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2006/03/21 23:03:59 UTC

[jira] Resolved: (HADOOP-97) DFSShell.cat returns NullPointerException if file does not exist

     [ http://issues.apache.org/jira/browse/HADOOP-97?page=all ]
     
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.

-- 
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