fix(mail): Fix assertion when failed to decode base64 mime body mail part

This commit is contained in:
smizrahi
2024-12-18 10:39:27 +01:00
parent 395a01ed52
commit 0a828a739e

View File

@@ -953,7 +953,10 @@ static BOOL debugSoParts = NO;
body = [NSData data];
currentAttachment = [NSMutableDictionary dictionaryWithDictionary: currentInfo];
[currentAttachment setObject: body forKey: @"body"];
if (body)
[currentAttachment setObject: body forKey: @"body"];
else
[self errorWithFormat: @"Failed add attachement %@, empty body - failed to decode : %@", currentPath, currentInfo];
[attachments addObject: currentAttachment];
}
}