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

Alexander Pivovarov updated HIVE-10590:
---------------------------------------
    Description: 
the following code will throw NPE if both v1 and v2 are null
{code}
String v1 = p1.getValues().get(i), v2 = p2.getValues().get(i);
if ((v1 == null && v2 != null) || !v1.equals(v2)) return false;
{code}

> fix potential NPE in HiveMetaStore.equals
> -----------------------------------------
>
>                 Key: HIVE-10590
>                 URL: https://issues.apache.org/jira/browse/HIVE-10590
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>            Reporter: Alexander Pivovarov
>            Assignee: Alexander Pivovarov
>            Priority: Minor
>
> the following code will throw NPE if both v1 and v2 are null
> {code}
> String v1 = p1.getValues().get(i), v2 = p2.getValues().get(i);
> if ((v1 == null && v2 != null) || !v1.equals(v2)) return false;
> {code}



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

Reply via email to