Skip to content

Commit

Permalink
fix break tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WangTaoTheTonic committed Apr 23, 2015
1 parent 0565831 commit 624e652
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ private boolean isClientMode(Properties userProps) {
* Return whether the given main class represents a thrift server.
*/
private boolean isThriftServer(String mainClass) {
return mainClass.equals("org.apache.spark.sql.hive.thriftserver.HiveThriftServer2");
return (mainClass != null &&
mainClass.equals("org.apache.spark.sql.hive.thriftserver.HiveThriftServer2"));
}


Expand Down

0 comments on commit 624e652

Please sign in to comment.