hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prasan...@apache.org
Subject [1/2] hive git commit: HIVE-15329: NullPointerException might occur when create table (Meilong Huang reviewed by Prasanth Jayachandran)
Date Fri, 09 Dec 2016 22:57:44 GMT
Repository: hive
Updated Branches:
  refs/heads/master e43861a10 -> e8bf72559


HIVE-15329: NullPointerException might occur when create table (Meilong Huang reviewed by
Prasanth Jayachandran)


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

Branch: refs/heads/master
Commit: 88e86b98835b949f8410259c6dab0c802233bb73
Parents: e43861a
Author: Prasanth Jayachandran <prasanthj@apache.org>
Authored: Fri Dec 9 14:55:10 2016 -0800
Committer: Prasanth Jayachandran <prasanthj@apache.org>
Committed: Fri Dec 9 14:57:06 2016 -0800

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


http://git-wip-us.apache.org/repos/asf/hive/blob/88e86b98/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java
----------------------------------------------------------------------
diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java
index 9ea6ac4..05ee3ac 100644
--- a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java
+++ b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java
@@ -1493,7 +1493,7 @@ public class MetaStoreUtils {
   }
 
   public static boolean isNonNativeTable(Table table) {
-    if (table == null) {
+    if (table == null || table.getParameters() == null) {
       return false;
     }
     return (table.getParameters().get(hive_metastoreConstants.META_TABLE_STORAGE) != null);


Mime
View raw message