Skip to content

Commit

Permalink
Preventing NPE while creating a dir for the result file (RC). Fixes i…
Browse files Browse the repository at this point in the history
…ssue 6695
  • Loading branch information
barancev committed Dec 13, 2013
1 parent 701bb94 commit 5efdf42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ protected void runHtmlSuite() {
String resultFilePath = getRequiredSystemProperty("htmlSuite.resultFilePath");
File resultFile = new File(resultFilePath);
File resultDir = resultFile.getParentFile();
if (!resultDir.exists() && !resultDir.mkdirs()) {
if ((resultDir != null) && !resultDir.exists() && !resultDir.mkdirs()) {
RemoteControlLauncher.usage("can't create directory for result file " + resultFilePath);
System.exit(1);
}
Expand Down

0 comments on commit 5efdf42

Please sign in to comment.