Skip to content

Commit

Permalink
Avoiding NPE for parameters without value #62
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Jul 10, 2018
1 parent 6e47573 commit 3dcdd66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Generic Webhook Plugin Changelog
Changelog of Generic Webhook Plugin.
## Unreleased
### GitHub [#62](https://github.com/jenkinsci/generic-webhook-trigger-plugin/issues/62) NullPointerException when trying to trigger job
### No issue

**Adding a jenkinsfile with defaults #62**
**Adding a jenkinsfile with defaults**


[fccc83aa293979b](https://github.com/jenkinsci/generic-webhook-trigger-plugin/commit/fccc83aa293979b) Tomas Bjerre *2018-07-09 20:16:37*
[6e47573b2926fbd](https://github.com/jenkinsci/generic-webhook-trigger-plugin/commit/6e47573b2926fbd) Tomas Bjerre *2018-07-09 20:48:34*


## 1.39 (2018-06-25 18:17:02)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ private static String getStringValue(
if (!isNullOrEmpty(resolvedVariables.get(param))) {
return resolvedVariables.get(param);
}
if (defaultParameterValue.getValue() == null) {
return "";
}
return defaultParameterValue.getValue().toString();
}
}

0 comments on commit 3dcdd66

Please sign in to comment.