[ 
https://issues.apache.org/jira/browse/HADOOP-5687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712089#action_12712089
 ] 

Steve Loughran commented on HADOOP-5687:
----------------------------------------

Linking to my duplicate bugrep

# my code adds a check for {{FileSystem.getDefaultUri(conf)}} being null, that 
could go in on top of what is checked in. It's unlikely, but if you try hard 
enough, it happens.

# some tests for this would be lightweight and fast. I will try to write them. 

> Hadoop NameNode throws NPE if fs.default.name is the default value
> ------------------------------------------------------------------
>
>                 Key: HADOOP-5687
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5687
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Philip Zeyliger
>            Assignee: Philip Zeyliger
>            Priority: Minor
>             Fix For: 0.21.0
>
>         Attachments: HADOOP-5687-v3.patch, HADOOP-5687-v4.patch, 
> HADOOP-5687-v5.patch, HADOOP-5687-v5.patch, HADOOP-5687.patch, 
> HADOOP-5687.patch
>
>
> Throwing NPE is confusing; instead, an exception with a useful string 
> description could be thrown instead.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to