Github user xubo245 commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2961#discussion_r237782459
--- Diff:
integration/spark2/src/main/scala/org/apache/spark/sql/CarbonSession.scala ---
@@ -180,7 +183,7 @@ object CarbonSession {
val userSuppliedContext: Option[SparkContext] =
getValue("userSuppliedContext",
builder).asInstanceOf[Option[SparkContext]]
- if (metaStorePath != null) {
+ if (metaStorePath != null && StringUtils.isNotBlank(metaStorePath)) {
--- End diff --
StringUtils.isNotBlank will judge null
---