Fix null point in MailService

This commit is contained in:
2024-08-09 11:44:24 +02:00
parent d8dec26f5d
commit bfe72399fd

View File

@@ -203,7 +203,24 @@ public class MailService {
replyToName, List<IFileSharerAttachment> emailFileAttachmentList, boolean requestDeliveryNotification,
String deliveryNotificationTo) throws
Exception {
return sendMailPrimary(multiDBTransactionManager, from, fromName, Arrays.asList(to.split(";")), Arrays.asList(cc.split(";")), Arrays.asList(ccn.split(";")),
List<String> listTo = null;
List<String> listCc = null;
List<String> listCcn = null;
if (!UtilityString.isNullOrEmpty(to)){
listTo = Arrays.asList(to.split(";"));
}
if (!UtilityString.isNullOrEmpty(cc)){
listCc = Arrays.asList(cc.split(";"));
}
if (!UtilityString.isNullOrEmpty(cc)){
listCcn = Arrays.asList(ccn.split(";"));
}
return sendMailPrimary(multiDBTransactionManager, from, fromName, listTo, listCc, listCcn,
subject, msgText, isHtml, isDebug, replyTo, replyToName, emailFileAttachmentList, requestDeliveryNotification, deliveryNotificationTo);
}