-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #1203 NPE if docker:save called with filename only. #1204
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1204 +/- ##
=========================================
Coverage 53.08% 53.08%
Complexity 1532 1532
=========================================
Files 150 150
Lines 7985 7985
Branches 1202 1202
=========================================
Hits 4239 4239
Misses 3328 3328
Partials 418 418
|
2 similar comments
Codecov Report
@@ Coverage Diff @@
## master #1204 +/- ##
=========================================
Coverage 53.08% 53.08%
Complexity 1532 1532
=========================================
Files 150 150
Lines 7985 7985
Branches 1202 1202
=========================================
Hits 4239 4239
Misses 3328 3328
Partials 418 418
|
Codecov Report
@@ Coverage Diff @@
## master #1204 +/- ##
=========================================
Coverage 53.08% 53.08%
Complexity 1532 1532
=========================================
Files 150 150
Lines 7985 7985
Branches 1202 1202
=========================================
Hits 4239 4239
Misses 3328 3328
Partials 418 418
|
Signed-off-by: William Rose <william.rose@nuance.com>
@@ -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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks ! @rohanKanojia : FYI, this fix very likely fixes also #1200 if applied to getContextDir()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks ! Lgtm.
Fixes NPE that happens if you run mvn docker:save -Dfile=no-directory-name.tar
Signed-off-by: William Rose william.rose@nuance.com