-
Notifications
You must be signed in to change notification settings - Fork 717
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
Prevent null pointer when exporting file credentials #1282
Prevent null pointer when exporting file credentials #1282
Conversation
Object value = a.getValue(instance); | ||
if (value != null) { | ||
Object converted = Stapler.CONVERT_UTILS.convert(value, a.getType()); | ||
if (converted instanceof Collection || p.getType().isArray() || !a |
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.
This needs to be formatted differently it looks odd.
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 once you format the if statement
Build fails due to upper bound deps. |
sorted |
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.
Sounds about right 👍
Codecov Report
@@ Coverage Diff @@
## master #1282 +/- ##
=========================================
Coverage 78.83% 78.83%
Complexity 780 780
=========================================
Files 65 65
Lines 2301 2301
Branches 320 320
=========================================
Hits 1814 1814
Misses 386 386
Partials 101 101 |
(this previously passed, re-triggering) |
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.
ready to go IMHO
I've been waiting for jenkinsci/credentials-plugin#135 to be merged and released as we're currently depending on an incremental version in the integration tests cc @jvz |
I've published credentials 2.3.2 @timja |
@jvz I think you forgot to merge the PR: jenkinsci/credentials-plugin#135 😱 |
Womp womp. Publishing 2.3.3 right now as well as an updated changelog in it. |
👏 |
@@ -67,6 +67,31 @@ public void testDomainScopedCredentials() { | |||
assertEquals("secret", creds.get(0).getPassword().getPlainText()); | |||
} | |||
|
|||
@Test |
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.
Add
@Issue("JENKINS-60467")
IIUC
Requires jenkinsci/credentials-plugin#135
Fixes #1170
Your checklist for this pull request
🚨 Please review the guidelines for contributing to this repository.