Skip to content
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

[#1528] determineFinalArgValue respect default value if key exists but value is null #1529

Conversation

twendelmuth
Copy link
Contributor

@twendelmuth twendelmuth commented Feb 23, 2022

Fix #1528

See #1528 - will return the default value when argMap.getValue() == null

@rohanKanojia rohanKanojia linked an issue Feb 23, 2022 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Feb 23, 2022

Codecov Report

Merging #1529 (6c7c06e) into master (5f71139) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##             master    #1529   +/-   ##
=========================================
  Coverage     62.01%   62.01%           
- Complexity     2189     2190    +1     
=========================================
  Files           167      167           
  Lines          9645     9645           
  Branches       1455     1455           
=========================================
  Hits           5981     5981           
  Misses         3139     3139           
  Partials        525      525           
Impacted Files Coverage Δ
...a/io/fabric8/maven/docker/util/DockerFileUtil.java 85.83% <100.00%> (ø)

@rohanKanojia rohanKanojia self-requested a review February 23, 2022 18:46
@rohanKanojia rohanKanojia changed the title [#1528] determineFinalArgValue respect default value if key exists bu… [#1528] determineFinalArgValue respect default value if key exists but value is null Feb 24, 2022
…exists but value is null

Signed-off-by: thorsten.wendelmuth <thorsten.wendelmuth@gmx.de>
@rohanKanojia rohanKanojia force-pushed the issue_1528_useDefaults_onARGprovidingKey_butNullValue branch from b5e2cdc to 6c7c06e Compare February 24, 2022 15:47
@sonarcloud
Copy link

sonarcloud bot commented Feb 24, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@rohanKanojia rohanKanojia merged commit 097f1c7 into fabric8io:master Feb 24, 2022
@rohanKanojia
Copy link
Member

@twendelmuth : Thanks for your PR 👍 . Would you be needing a patch release with this bugfix?

@twendelmuth twendelmuth deleted the issue_1528_useDefaults_onARGprovidingKey_butNullValue branch February 24, 2022 17:32
@twendelmuth
Copy link
Contributor Author

@rohanKanojia I'd prefer it - unless you're planning to release 0.40.0 anyway soon 👍

@rohanKanojia
Copy link
Member

@twendelmuth : I've cut 0.39.1 today https://repo1.maven.org/maven2/io/fabric8/docker-maven-plugin/0.39.1/ . Would appreciate if you could try it out whenever you get time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dockerfile ARG default throws NPE if ARG is null
2 participants