Skip to content

Commit

Permalink
Fixing NPE when installing OWAs - SDK-250
Browse files Browse the repository at this point in the history
  • Loading branch information
dkayiwa committed Feb 10, 2020
1 parent a7a5334 commit 4038cc9
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,11 @@ public String setup(Server server, boolean isCreatePlatform, boolean isCopyDepen
}

private void installOWAs(Server server, DistroProperties distroProperties) throws MojoExecutionException {
File owasDir = new File(server.getServerDirectory(), "owa");
owasDir.mkdirs();
downloadOWAs(server.getServerDirectory(), distroProperties, owasDir);
if (distroProperties != null) {
File owasDir = new File(server.getServerDirectory(), "owa");
owasDir.mkdirs();
downloadOWAs(server.getServerDirectory(), distroProperties, owasDir);
}
}

private void downloadOWAs(File targetDirectory, DistroProperties distroProperties, File owasDir) throws MojoExecutionException {
Expand Down

0 comments on commit 4038cc9

Please sign in to comment.