Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-10590

fix potential NPE in HiveMetaStore.equals

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Pending Closed
    • None
    • 1.3.0
    • Metastore
    • None

    Description

      The following code will throw NPE if both v1 and v2 are null. HiveMetaStore (2028-2029)

      String v1 = p1.getValues().get(i), v2 = p2.getValues().get(i);
      if ((v1 == null && v2 != null) || !v1.equals(v2)) return false;
      

      Attachments

        1. rb33798.patch
          1 kB
          Alexander Pivovarov
        2. HIVE-10590.1.patch
          1 kB
          Alexander Pivovarov

        Activity

          People

            apivovarov Alexander Pivovarov
            apivovarov Alexander Pivovarov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: