mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 21:55:13 +00:00
Check precondition
This commit is contained in:
parent
4f09389846
commit
cb50de94f2
1 changed files with 2 additions and 0 deletions
|
@ -1835,6 +1835,8 @@ class Core {
|
||||||
throw new IllegalArgumentException("Download of sub attachment");
|
throw new IllegalArgumentException("Download of sub attachment");
|
||||||
if (attachment.available)
|
if (attachment.available)
|
||||||
return;
|
return;
|
||||||
|
if (message.uid == null)
|
||||||
|
throw new IllegalArgumentException("Attachment/message uid missing");
|
||||||
|
|
||||||
// Get message
|
// Get message
|
||||||
Message imessage = ifolder.getMessageByUID(message.uid);
|
Message imessage = ifolder.getMessageByUID(message.uid);
|
||||||
|
|
Loading…
Reference in a new issue