Skip to content

Commit

Permalink
add null check
Browse files Browse the repository at this point in the history
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
  • Loading branch information
olamy committed May 29, 2021
1 parent 20b618d commit 44bc0e8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -149,7 +150,7 @@ public DistributionTester.Run start(List<String> args) throws Exception

List<String> commands = new ArrayList<>();
commands.add(getJavaExecutable());
commands.addAll(config.javaOptions);
commands.addAll(config.javaOptions == null ? Collections.emptyList() : config.javaOptions);
commands.add("-Djava.io.tmpdir=" + workDir.toAbsolutePath().toString());
commands.add("-jar");
commands.add(config.jettyHome.toAbsolutePath() + "/start.jar");
Expand Down

0 comments on commit 44bc0e8

Please # to comment.