Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-2612

Potential NPE accessing familyMap in AclTableMigrationTool#getAllAceInfo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • v2.1.0
    • None

    Description

      Here is related code:

              NavigableMap<byte[], byte[]> familyMap = result.getFamilyMap(Bytes.toBytes(AclHBaseStorage.ACL_ACES_FAMILY));
              for (Map.Entry<byte[], byte[]> entry : familyMap.entrySet()) {
      

      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

      Attachments

        Activity

          People

            shaofengshi Shao Feng Shi
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: