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

Potential null pointer reference in ObjectInspectorUtils#compareTypes()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.2, 1.1.0
    • Types
    • None

    Description

            if (childFieldsList1 == null && childFieldsList2 == null) {
              return true;
            }
      
            if (childFieldsList1.size() != childFieldsList2.size()) {
              return false;
            }
      

      If either childFieldsList1 or childFieldsList2 is null but not both, the second if statement would produce NPE.

      Attachments

        1. HIVE-7997.1.patch.txt
          0.8 kB
          Navis Ryu

        Activity

          People

            navis Navis Ryu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: