-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Fix the NullPointerException when "start param to overwrite global param" #15677
Conversation
@wustlz please rebase your PR and link this to an issue |
ca3cc5e
to
6020cdc
Compare
done |
if (startParamMap.containsKey(param.getKey())) { | ||
String val = startParamMap.get(param.getKey()).getValue(); | ||
if (val != null) { | ||
param.setValue(val); | ||
} |
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 for your PR, please add UT for this case.
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.
done
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.
@wustlz overall LGTM, please Run 'mvn spotless:apply' to fix the code style
a26b825
to
ee8f333
Compare
ee8f333
to
b7d1c73
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #15677 +/- ##
============================================
+ Coverage 39.05% 39.07% +0.01%
- Complexity 4845 4849 +4
============================================
Files 1316 1316
Lines 45012 45014 +2
Branches 4818 4819 +1
============================================
+ Hits 17581 17589 +8
+ Misses 25525 25517 -8
- Partials 1906 1908 +2 ☔ View full report in Codecov by Sentry. |
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.
LGTM
Quality Gate passedIssues Measures |
Purpose of the pull request
This pull request to fix #15676 , fix the NullPointerException by checking whether the key exists when "start param to overwrite global param"
Brief change log
Add a "containsKey" judgement when "start param to overwrite global param"
Verify this pull request
This pull request is code cleanup without any test coverage.