From 9bb0fa729c1d66027b370c8ad75ab5f8667e56dc Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 10 Jul 2020 08:45:04 +0200 Subject: [PATCH] Fixed adding messages in some cases --- app/src/main/java/eu/faircode/email/Core.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 03f65b21e7..dd8eb79a1b 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -860,7 +860,7 @@ class Core { if (istore.hasCapability("UIDPLUS")) { // https://tools.ietf.org/html/rfc4315 AppendUID[] uids = ifolder.appendUIDMessages(new Message[]{imessage}); - if (uids != null && uids.length > 0 && uids[0].uid > 0) { + if (uids != null && uids.length > 0 && uids[0] != null && uids[0].uid > 0) { newuid = uids[0].uid; Log.i(folder.name + " appended uid=" + newuid); }