Skip to content

Commit

Permalink
fix(NPE): Corrected NPE error.
Browse files Browse the repository at this point in the history
see #JENKINS-41436
  • Loading branch information
hypery2k committed Jan 25, 2017
1 parent fb7d722 commit 583b847
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -91,7 +91,7 @@ public void send(String channelName, String message) throws ValidatorException,
Response res = this.callBuilder.buildCall(RocketChatRestApiV1.PostMessage,
null, body);
if (!res.isSuccessful()) {
LOG.severe("Could not sebd message: " + res.getMessage().getMsg());
LOG.severe("Could not send message: " + res.getMessage() != null ? res.getMessage().getMsg() : "");
throw new IOException("The send of the message was unsuccessful.");
}
}
Expand Down

0 comments on commit 583b847

Please sign in to comment.