NPE fixed

This commit is contained in:
Sandro La Bruzzo 2021-07-23 13:23:25 +02:00
parent bc835d2024
commit 4a439c3863
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ object SparkResolveRelation {
m =>
val sourceResolved = m._2
val currentRelation = m._1._2
if (sourceResolved!=null && sourceResolved._2.nonEmpty)
if (sourceResolved!=null && sourceResolved._2!=null && sourceResolved._2.nonEmpty)
currentRelation.setSource(sourceResolved._2)
currentRelation
}.write