Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Commit 702a8f6

Browse files
committed
Fix bug with null arguments
1 parent 64f3ddd commit 702a8f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,9 @@ object SparkSubmit extends CommandLineUtils {
639639
if (args.isPython) {
640640
childArgs ++= Array("--primary-py-file", args.primaryResource)
641641
childArgs ++= Array("--main-class", "org.apache.spark.deploy.PythonRunner")
642-
childArgs ++= Array("--other-py-files", args.pyFiles)
642+
if (args.pyFiles != null) {
643+
childArgs ++= Array("--other-py-files", args.pyFiles)
644+
}
643645
} else {
644646
childArgs ++= Array("--primary-java-resource", args.primaryResource)
645647
childArgs ++= Array("--main-class", args.mainClass)

0 commit comments

Comments
 (0)