lujie created HBASE-20419: ----------------------------- Summary: Two Potential NPE Key: HBASE-20419 URL: https://issues.apache.org/jira/browse/HBASE-20419 Project: HBase Issue Type: Bug Affects Versions: 2.0.0-beta-2 Reporter: lujie Attachments: HBASE-20419_1.patch
Callee ZKUtil#listChildrenAndWatchForNewChildren may return null, it has 8 callers, 6 of the caller have null checker like: {code:java} List<String> children = ZKUtil.listChildrenAndWatchForNewChildren(zkw, zkw.znodePaths.rsZNode); if (children == null) { return Collections.emptyList(); } {code} but another two callers do not have null checker:RSGroupInfoManagerImpl#retrieveGroupListFromZookeeper,ZKProcedureMemberRpcs#watchForAbortedProcedures. We attach the patch to fix this probelm.(We found this bug by tool [NPEDetector|https://github.com/lujiefsi/NPEDetector]) -- This message was sent by Atlassian JIRA (v7.6.3#76005)