diff --git metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java index d165fc8..2461bda 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -5977,7 +5977,11 @@ public UpdateMStorageDescriptorTblURIRetVal updateMStorageDescriptorTblURI(URI o URI locationURI = null; String location = mSDS.getLocation(); try { - locationURI = new Path(location).toUri(); + if (location == null) { + LOG.debug("There is no location URI for View or Index."); + } else { + locationURI = new Path(location).toUri(); + } } catch (IllegalArgumentException e) { badRecords.add(location); }