You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Xiaomeng Huang (JIRA)" <ji...@apache.org> on 2014/09/02 03:10:20 UTC

[jira] [Updated] (HIVE-7932) It may cause NP exception when add accessed columns to ReadEntity

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

Xiaomeng Huang updated HIVE-7932:
---------------------------------
    Description: 
{code}
case TABLE:
   entity.getAccessedColumns().addAll(
      tableToColumnAccessMap.get(entity.getTable().getCompleteName()));
{code}
if  tableToColumnAccessMap.get(entity.getTable().getCompleteName()) is null, addAll(null) will throw null pointer exception.

> It may cause NP exception when add accessed columns to ReadEntity
> -----------------------------------------------------------------
>
>                 Key: HIVE-7932
>                 URL: https://issues.apache.org/jira/browse/HIVE-7932
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Xiaomeng Huang
>            Assignee: Xiaomeng Huang
>
> {code}
> case TABLE:
>    entity.getAccessedColumns().addAll(
>       tableToColumnAccessMap.get(entity.getTable().getCompleteName()));
> {code}
> if  tableToColumnAccessMap.get(entity.getTable().getCompleteName()) is null, addAll(null) will throw null pointer exception.



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