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