hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Pivovarov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-10590) fix potential NPE in HiveMetaStore.equals
Date Mon, 04 May 2015 01:25:05 GMT

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

Alexander Pivovarov updated HIVE-10590:
---------------------------------------
    Attachment: rb33798.patch

patch #1

> 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
>         Attachments: rb33798.patch
>
>
> The following code will throw NPE if both v1 and v2 are null. HiveMetaStore (2028-2029)
> {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)

Mime
View raw message