You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "zhaohongtao (JIRA)" <ji...@apache.org> on 2017/07/31 08:40:00 UTC
[jira] [Created] (HIVE-17211) SQLStdHiveAccessController.showPrivileges Method may encountered 遇到空指针 Null pointer
zhaohongtao created HIVE-17211:
----------------------------------
Summary: SQLStdHiveAccessController.showPrivileges Method may encountered 遇到空指针 Null pointer
Key: HIVE-17211
URL: https://issues.apache.org/jira/browse/HIVE-17211
Project: Hive
Issue Type: Bug
Components: Security
Affects Versions: 2.2.0
Reporter: zhaohongtao
Assignee: zhaohongtao
List<HiveObjectPrivilege> msObjPrivs = mClient.list_privileges(
principalName, principalType,
this.getThriftHiveObjectRef(privObj));
>>> CID 166074: Null pointer dereferences (NULL_RETURNS)
>>> Calling a method on null object "msObjPrivs".
for (HiveObjectPrivilege msObjPriv : msObjPrivs) {
HivePrincipal resPrincipal = new HivePrincipal(
msObjPriv.getPrincipalName(),
AuthorizationUtils.getHivePrincipalType(msObjPriv
.getPrincipalType()));
The method mClient.list_privileges(
principalName, principalType,
this.getThriftHiveObjectRef(privObj)); may return null ;
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)