Skip to content

Commit

Permalink
Adding null check on custom message
Browse files Browse the repository at this point in the history
When falling back to the default custom message, it would throw an exception if the custom message was null.
  • Loading branch information
KyleOrth authored and timja committed Jan 3, 2019
1 parent 0a94fb8 commit 0723da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/jenkins/plugins/slack/ActiveNotifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public MessageBuilder appendCustomMessage(Result buildResult) {
customMessage = notifier.getCustomMessageFailure();
}
}
if (customMessage.isEmpty()) {
if (customMessage == null || customMessage.isEmpty()) {
customMessage = notifier.getCustomMessage();
}
try {
Expand Down

0 comments on commit 0723da6

Please sign in to comment.