Skip to content

Commit

Permalink
HIVE-7997 : Potential null pointer reference in ObjectInspectorUtils#…
Browse files Browse the repository at this point in the history
…compareTypes() (Navis via Xuefu Zhang)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1639959 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
ashutoshc committed Nov 16, 2014
1 parent d4efdc3 commit d202ca0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -951,9 +951,9 @@ public static boolean compareTypes(ObjectInspector o1, ObjectInspector o2) {

if (childFieldsList1 == null && childFieldsList2 == null) {
return true;
}

if (childFieldsList1.size() != childFieldsList2.size()) {
} else if (childFieldsList1 == null || childFieldsList2 == null) {
return false;
} else if (childFieldsList1.size() != childFieldsList2.size()) {
return false;
}

Expand Down

0 comments on commit d202ca0

Please sign in to comment.