Skip to content

Commit 624e652

Browse files
fix break tests
1 parent 0565831 commit 624e652

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

launcher/src/main/java/org/apache/spark/launcher/SparkSubmitCommandBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ private boolean isClientMode(Properties userProps) {
308308
* Return whether the given main class represents a thrift server.
309309
*/
310310
private boolean isThriftServer(String mainClass) {
311-
return mainClass.equals("org.apache.spark.sql.hive.thriftserver.HiveThriftServer2");
311+
return (mainClass != null &&
312+
mainClass.equals("org.apache.spark.sql.hive.thriftserver.HiveThriftServer2"));
312313
}
313314

314315

0 commit comments

Comments
 (0)