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:22:50 GMT
Repository: hive
Updated Branches:
  refs/heads/master f33e15372 -> 89c02bf5f


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/89c02bf5
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/89c02bf5
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/89c02bf5

Branch: refs/heads/master
Commit: 89c02bf5f57f2bcadf6dd329c47b8b7074b2b75b
Parents: f33e153
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:22:31 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/89c02bf5/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 bf1b5d4..5f13277 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
@@ -153,7 +153,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