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:
parent
a3c3c54bae
commit
f8b1a13161
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue