[ https://issues.apache.org/jira/browse/HIVE-7932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14132828#comment-14132828 ]
Prasad Mujumdar commented on HIVE-7932: --------------------------------------- [~Huang Xiaomeng] Thanks for finding the issue and providing a patch. The change look fine to me. Would it be possible to add a simple testcase that verifies this codepath ? > 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 > Attachments: HIVE-7932.001.patch > > > {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)