From 9c2c2222a10105ebfeee50acd9a5e0054f18c971 Mon Sep 17 00:00:00 2001 From: "james.zhao" Date: Mon, 5 Nov 2018 18:12:20 +0800 Subject: [PATCH] update --- .../payment/manage/notice/core/impls/MailServiceImp.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/MailServiceImp.java b/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/MailServiceImp.java index a44a49cab..4de3517a4 100644 --- a/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/MailServiceImp.java +++ b/src/main/java/au/com/royalpay/payment/manage/notice/core/impls/MailServiceImp.java @@ -248,7 +248,9 @@ public class MailServiceImp implements MailService { Key aesKey = AESCrypt.fromKeyString(Base64.decodeBase64(settleAESKey)); String mailPwd = new String(AESCrypt.decrypt(Base64.decodeBase64(mailPwdEncrypted), aesKey), StandardCharsets.UTF_8); noticeBean.setPassword(mailPwd); - noticeBean.setAttachFiles(attachFiles); + if(attachFiles!=null){ + noticeBean.setAttachFiles(attachFiles); + } String postUrl = mailHost + "/mail/single?" + generateMailSignParam(); HttpRequestResult result = null; try {