Skip to content

Commit

Permalink
Check for metadata being null (#3285)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Graves <tgraves@nvidia.com>
  • Loading branch information
tgravescs authored Aug 24, 2021
1 parent a69773c commit 59e214f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ abstract class AppBase(

def getPlanMetaWithSchema(planInfo: SparkPlanInfo): Seq[SparkPlanInfo] = {
val childRes = planInfo.children.flatMap(getPlanMetaWithSchema(_))
if (planInfo.metadata.contains("ReadSchema")) {
if (planInfo.metadata != null && planInfo.metadata.contains("ReadSchema")) {
childRes :+ planInfo
} else {
childRes
Expand Down

0 comments on commit 59e214f

Please sign in to comment.