[ 
https://issues.apache.org/jira/browse/HDFS-2672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190621#comment-13190621
 ] 

Harsh J commented on HDFS-2672:
-------------------------------

Brandon - The latter is on the branch-1. The former may have been refactored 
since, so OP may have to update on the right location.
                
> possible Cases for NullPointerException
> ---------------------------------------
>
>                 Key: HDFS-2672
>                 URL: https://issues.apache.org/jira/browse/HDFS-2672
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: kavita sharma
>            Priority: Trivial
>
> NullPointerException can be thrown as null check is not added in DFSClient 
> and UpgradeManagerNamenode.
> {noformat}
>  DFSClient.java
>    Block newBlock = primary.getBlockInfo(last.getBlock());
>    if newBlock comes null then NullPointerException will be thrown.
> {noformat}
> {noformat}
>  UpgradeManagerNamenode.java
>   uos = UpgradeObjectCollection.getDistributedUpgrades(-4,
>             HdfsConstants.NodeType.NAME_NODE);
> if uos will come null then NullPointerException will be thrown.
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to