Skip to content

Commit 7dca637

Browse files
committed
Fixed a bug with loading info about attachments without a name.
1 parent 193f846 commit 7dca637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FlowCrypt/src/main/java/com/flowcrypt/email/service/EmailSyncService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ private ArrayList<AttachmentInfo> getAttachmentsInfoFromPart(AccountDao accountD
573573
headers = internetHeaders.getHeader(JavaEmailConstants.HEADER_X_ATTACHMENT_ID);
574574
}
575575

576-
if (headers != null && headers.length > 0) {
576+
if (headers != null && headers.length > 0 && !TextUtils.isEmpty(bodyPart.getFileName())) {
577577
AttachmentInfo attachmentInfo = new AttachmentInfo();
578578
attachmentInfo.setName(bodyPart.getFileName());
579579
attachmentInfo.setEncodedSize(bodyPart.getSize());

0 commit comments

Comments
 (0)