From f8b1a13161635e8d7bdf2c80011cc212c13479f0 Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Wed, 21 Aug 2013 04:06:50 +0000 Subject: [PATCH] HBASE-9281 user_permission command encounters NullPointerException (Ted Yu) git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1516074 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/hadoop/hbase/security/access/AccessControlLists.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessControlLists.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessControlLists.java index 3cecfc7f631..4974eeb1c76 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessControlLists.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessControlLists.java @@ -482,7 +482,7 @@ public class AccessControlLists { */ static List getUserTablePermissions( Configuration conf, TableName tableName) throws IOException { - return getUserPermissions(conf, tableName.getName()); + return getUserPermissions(conf, tableName == null ? null : tableName.getName()); } static List getUserNamespacePermissions(