hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1551409 - /hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/security/access/TablePermission.java
Date Mon, 16 Dec 2013 23:46:30 GMT
Author: tedyu
Date: Mon Dec 16 23:46:30 2013
New Revision: 1551409

URL: http://svn.apache.org/r1551409
Log:
HBASE-10178 Potential null object dereference in TablePermission#equals()


Modified:
    hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/security/access/TablePermission.java

Modified: hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/security/access/TablePermission.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/security/access/TablePermission.java?rev=1551409&r1=1551408&r2=1551409&view=diff
==============================================================================
--- hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/security/access/TablePermission.java
(original)
+++ hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/security/access/TablePermission.java
Mon Dec 16 23:46:30 2013
@@ -324,7 +324,7 @@ public class TablePermission extends Per
         ((qualifier == null && other.getQualifier() == null) ||
          Bytes.equals(qualifier, other.getQualifier())) &&
         ((namespace == null && other.getNamespace() == null) ||
-         namespace.equals(other.getNamespace()))
+         (namespace != null && namespace.equals(other.getNamespace())))
        )) {
       return false;
     }



Mime
View raw message