Skip to content

Commit

Permalink
fix: check boolean against null
Browse files Browse the repository at this point in the history
  • Loading branch information
mobo4b committed Oct 20, 2020
1 parent 936735d commit c7a4d29
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package de.caritas.cob.messageservice.api.facade;

import static java.util.Objects.isNull;
import static org.apache.commons.lang3.BooleanUtils.isTrue;

import de.caritas.cob.messageservice.api.exception.BadRequestException;
import de.caritas.cob.messageservice.api.exception.CustomCryptoException;
Expand Down Expand Up @@ -51,7 +52,7 @@ public void postGroupMessage(String rcToken, String rcUserId, String rcGroupId,

postRocketChatGroupMessage(rcToken, rcUserId, rcGroupId, message.getMessage(), null);

if (message.getSendNotification()) {
if (isTrue(message.getSendNotification())) {
emailNotificationFacade.sendEmailNotification(rcGroupId);
}
}
Expand Down

0 comments on commit c7a4d29

Please sign in to comment.