hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xu...@apache.org
Subject hive git commit: HIVE-11433: NPE for a multiple inner join query
Date Wed, 05 Aug 2015 17:23:23 GMT
Repository: hive
Updated Branches:
  refs/heads/branch-1 6561ac0a5 -> fb736ab78


HIVE-11433: NPE for a multiple inner join query


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/fb736ab7
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/fb736ab7
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/fb736ab7

Branch: refs/heads/branch-1
Commit: fb736ab788db68b23296c39bae215b3ee6e6cf5f
Parents: 6561ac0
Author: Xuefu Zhang <xzhang@Cloudera.com>
Authored: Wed Aug 5 10:22:31 2015 -0700
Committer: Xuefu Zhang <xzhang@Cloudera.com>
Committed: Wed Aug 5 10:23:18 2015 -0700

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/parse/ParseUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/fb736ab7/ql/src/java/org/apache/hadoop/hive/ql/parse/ParseUtils.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/ParseUtils.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/ParseUtils.java
index 18f0180..d9ee1ec 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/parse/ParseUtils.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/ParseUtils.java
@@ -146,7 +146,7 @@ public final class ParseUtils {
 
   static int getIndex(String[] list, String elem) {
     for(int i=0; i < list.length; i++) {
-      if (list[i].toLowerCase().equals(elem)) {
+      if (list[i] != null && list[i].toLowerCase().equals(elem)) {
         return i;
       }
     }


Mime
View raw message