Prevent crash

This commit is contained in:
M66B 2020-12-29 14:31:25 +01:00
parent a707b064c2
commit 6fd80ce873
1 changed files with 2 additions and 1 deletions

View File

@ -769,6 +769,7 @@ public class MessageHelper {
});
attachmentPart.setDataHandler(new DataHandler(dataSource));
if (attachment.name != null)
attachmentPart.setFileName(attachment.name);
if (attachment.disposition != null)
attachmentPart.setDisposition(attachment.disposition);