diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index c0f83d814b..b8d71dfd87 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -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);