Skip to content

Commit 583b847

Browse files
committed
fix(NPE): Corrected NPE error.
see #JENKINS-41436
1 parent fb7d722 commit 583b847

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/main/java/jenkins/plugins/rocketchatnotifier/rocket/RocketChatClientImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void send(String channelName, String message) throws ValidatorException,
9191
Response res = this.callBuilder.buildCall(RocketChatRestApiV1.PostMessage,
9292
null, body);
9393
if (!res.isSuccessful()) {
94-
LOG.severe("Could not sebd message: " + res.getMessage().getMsg());
94+
LOG.severe("Could not send message: " + res.getMessage() != null ? res.getMessage().getMsg() : "");
9595
throw new IOException("The send of the message was unsuccessful.");
9696
}
9797
}

0 commit comments

Comments
 (0)