You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Shaofeng SHI (JIRA)" <ji...@apache.org> on 2017/07/22 14:07:02 UTC

[jira] [Updated] (KYLIN-2612) Potential NPE accessing familyMap in AclTableMigrationTool#getAllAceInfo

     [ https://issues.apache.org/jira/browse/KYLIN-2612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shaofeng SHI updated KYLIN-2612:
--------------------------------
    Fix Version/s: v2.1.0

> Potential NPE accessing familyMap in AclTableMigrationTool#getAllAceInfo
> ------------------------------------------------------------------------
>
>                 Key: KYLIN-2612
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2612
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Shaofeng SHI
>            Priority: Minor
>              Labels: newbie, scope
>             Fix For: v2.1.0
>
>
> Here is related code:
> {code}
>         NavigableMap<byte[], byte[]> familyMap = result.getFamilyMap(Bytes.toBytes(AclHBaseStorage.ACL_ACES_FAMILY));
>         for (Map.Entry<byte[], byte[]> entry : familyMap.entrySet()) {
> {code}
> Good practice is to check whether familyMap is null / empty first.
> See the following class in hbase for example:
> hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/QuotaTableUtil.java



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)