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:
Zhihong Yu 2013-05-21 01:59:44 +00:00
parent 21735dde20
commit 634f63ef3c
1 changed files with 1 additions and 1 deletions

View File

@ -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);