HBASE-8582 Possible NullPointerException in ZKInterProcessLockBase#visitLocks (Ted Yu)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1484643 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
21735dde20
commit
634f63ef3c
|
@ -423,7 +423,7 @@ public abstract class ZKInterProcessLockBase implements InterProcessLock {
|
|||
LOG.error("Unexpected ZooKeeper error when listing children", e);
|
||||
throw new IOException("Unexpected ZooKeeper exception", e);
|
||||
}
|
||||
if (children.size() > 0) {
|
||||
if (children != null && children.size() > 0) {
|
||||
for (String child : children) {
|
||||
if (isChildOfSameType(child)) {
|
||||
String znode = ZKUtil.joinZNode(parentLockNode, child);
|
||||
|
|
Loading…
Reference in New Issue