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
This commit is contained in:
Zhihong Yu 2013-08-21 04:06:50 +00:00
parent a3c3c54bae
commit f8b1a13161
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ public class AccessControlLists {
*/ */
static List<UserPermission> getUserTablePermissions( static List<UserPermission> getUserTablePermissions(
Configuration conf, TableName tableName) throws IOException { Configuration conf, TableName tableName) throws IOException {
return getUserPermissions(conf, tableName.getName()); return getUserPermissions(conf, tableName == null ? null : tableName.getName());
} }
static List<UserPermission> getUserNamespacePermissions( static List<UserPermission> getUserNamespacePermissions(