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

Commit af446e6

Browse files
foxisherikerlandson
authored andcommitted
Fix bug with null arguments (#415)
1 parent 37f9943 commit af446e6

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
@@ -623,7 +623,9 @@ object SparkSubmit {
623623
if (args.isPython) {
624624
childArgs ++= Array("--primary-py-file", args.primaryResource)
625625
childArgs ++= Array("--main-class", "org.apache.spark.deploy.PythonRunner")
626-
childArgs ++= Array("--other-py-files", args.pyFiles)
626+
if (args.pyFiles != null) {
627+
childArgs ++= Array("--other-py-files", args.pyFiles)
628+
}
627629
} else {
628630
childArgs ++= Array("--primary-java-resource", args.primaryResource)
629631
childArgs ++= Array("--main-class", args.mainClass)

0 commit comments

Comments
 (0)