[
https://issues.apache.org/jira/browse/HDFS-2672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13182984#comment-13182984
]
Brandon Li commented on HDFS-2672:
----------------------------------
Hi Kavita,
I don't see the code you mentioned in trunk. Which branch/version are you
referring to?
Thanks,
Brandon
> 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