hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1484643 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/lock/ZKInterProcessLockBase.java
Date Tue, 21 May 2013 01:59:44 GMT
Author: tedyu
Date: Tue May 21 01:59:44 2013
New Revision: 1484643

URL: http://svn.apache.org/r1484643
Log:
HBASE-8582 Possible NullPointerException in ZKInterProcessLockBase#visitLocks (Ted Yu)


Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/lock/ZKInterProcessLockBase.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/lock/ZKInterProcessLockBase.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/lock/ZKInterProcessLockBase.java?rev=1484643&r1=1484642&r2=1484643&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/lock/ZKInterProcessLockBase.java
(original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/lock/ZKInterProcessLockBase.java
Tue May 21 01:59:44 2013
@@ -423,7 +423,7 @@ public abstract class ZKInterProcessLock
       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);



Mime
View raw message