-
Notifications
You must be signed in to change notification settings - Fork 640
-
Notifications
You must be signed in to change notification settings - Fork 640
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
NPE in docker:save when supplying file name without directory #1203
Comments
wrosenuance
added a commit
to wrosenuance/docker-maven-plugin
that referenced
this issue
Apr 11, 2019
Signed-off-by: William Rose <william.rose@nuance.com>
wrosenuance
added a commit
to wrosenuance/docker-maven-plugin
that referenced
this issue
Apr 12, 2019
Signed-off-by: William Rose <william.rose@nuance.com>
rhuss
pushed a commit
that referenced
this issue
Apr 12, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
If the docker.save.file system property is used to override the output location for docker:save and the property value is just a file name without a directory, the plugin throws an NPE.
Info
mvn -v
) : 3.5.4The issue is in ensureSaveDir(), which does not check for a null result from getParentFile(), which happens when the File does not specify a directory.
I will submit a PR to fix, it's easy.
The text was updated successfully, but these errors were encountered: