Skip to content

Commit

Permalink
Merge pull request #465 from prigaux/fix-NPE
Browse files Browse the repository at this point in the history
fix send mail to userShare
  • Loading branch information
dlemaignent authored Nov 8, 2024
2 parents e05f30c + b6a5892 commit 576925d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void sendSignRequestEmailAlert(SignBook signBook, User recipientUser, Dat
Map<String, UserShare> toShareEmails = new HashMap<>();
for (UserShare userShare : userShareService.getUserSharesByUser(recipientUser.getEppn())) {
if (userShare.getShareTypes().contains(ShareType.sign) &&
((data != null && data.getForm() != null && data.getForm().getId().equals(userShare.getForm().getId()))
((data != null && data.getForm() != null && userShare.getForm() != null && data.getForm().getId().equals(userShare.getForm().getId()))
|| (workflow != null && userShare.getWorkflow() != null && workflow.getId().equals(userShare.getWorkflow().getId()))
|| (userShare.getAllSignRequests() && BooleanUtils.isTrue(userShare.getForceTransmitEmails())))) {
for (User toUser : userShare.getToUsers()) {
Expand Down

0 comments on commit 576925d

Please sign in to comment.