1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-31 20:25:38 +00:00

Check precondition

This commit is contained in:
M66B 2021-10-15 21:04:03 +02:00
parent 4f09389846
commit cb50de94f2

View file

@ -1835,6 +1835,8 @@ class Core {
throw new IllegalArgumentException("Download of sub attachment");
if (attachment.available)
return;
if (message.uid == null)
throw new IllegalArgumentException("Attachment/message uid missing");
// Get message
Message imessage = ifolder.getMessageByUID(message.uid);