phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PHOENIX-1230) Potential null pointer reference in GroupedAggregateRegionObserver#scanUnordered()
Date Tue, 02 Sep 2014 22:37:51 GMT
Ted Yu created PHOENIX-1230:
-------------------------------

             Summary: Potential null pointer reference in GroupedAggregateRegionObserver#scanUnordered()
                 Key: PHOENIX-1230
                 URL: https://issues.apache.org/jira/browse/PHOENIX-1230
             Project: Phoenix
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


Here is related code: 
{code}
 IndexUtil.wrapResultUsingOffset(results, offset, dataColumns, tupleProjector, dataRegion,
indexMaintainers == null ? null : indexMaintainers.get(0), 
{code}
If null is passed (as the 6th parameter to IndexUtil.wrapResultUsingOffset), it would get
dereferenced here: 
{code}
 byte[] dataRowKey = indexMaintainer.buildDataRowKey(ptr, viewConstants); {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message