Skip to content

Commit

Permalink
Issue #1203 NPE if docker:save called with filename only.
Browse files Browse the repository at this point in the history
Signed-off-by: William Rose <william.rose@nuance.com>
  • Loading branch information
wrosenuance committed Apr 11, 2019
1 parent cef79cf commit effc07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/fabric8/maven/docker/SaveMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private String completeCalculatedFileName(String file) throws MojoExecutionExcep
}

private void ensureSaveDir(String fileName) throws MojoExecutionException {
File saveDir = new File(fileName).getParentFile();
File saveDir = new File(fileName).getAbsoluteFile().getParentFile();
if (!saveDir.exists()) {
if (!saveDir.mkdirs()) {
throw new MojoExecutionException("Can not create directory " + saveDir + " for storing save file");
Expand Down

0 comments on commit effc07d

Please sign in to comment.