From cb50de94f2902b6f55f82c0ba1066fa100ea964b Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 15 Oct 2021 21:04:03 +0200 Subject: [PATCH] Check precondition --- app/src/main/java/eu/faircode/email/Core.java | 2 ++ 1 file changed, 2 insertions(+) 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);