Fix null point in MailService
This commit is contained in:
@@ -203,7 +203,24 @@ public class MailService {
|
|||||||
replyToName, List<IFileSharerAttachment> emailFileAttachmentList, boolean requestDeliveryNotification,
|
replyToName, List<IFileSharerAttachment> emailFileAttachmentList, boolean requestDeliveryNotification,
|
||||||
String deliveryNotificationTo) throws
|
String deliveryNotificationTo) throws
|
||||||
Exception {
|
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);
|
subject, msgText, isHtml, isDebug, replyTo, replyToName, emailFileAttachmentList, requestDeliveryNotification, deliveryNotificationTo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user