Skip to content

Commit e52b829

Browse files
committed
Don't use job.properties when null
1 parent 82f78bb commit e52b829

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,8 @@ class DAGScheduler(
10561056
job.listener.jobFailed(error)
10571057

10581058
val shouldInterruptThread =
1059-
job.properties.getProperty(SparkContext.SPARK_JOB_INTERRUPT_ON_CANCEL, "false").toBoolean
1059+
if (job.properties == null) false
1060+
else job.properties.getProperty(SparkContext.SPARK_JOB_INTERRUPT_ON_CANCEL, "false").toBoolean
10601061

10611062
// Cancel all independent, running stages.
10621063
val stages = jobIdToStageIds(job.jobId)

0 commit comments

Comments
 (0)