From a222187739a68b2952d329c997b0401dfe1d171d Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 5 Mar 2020 18:51:02 +0100 Subject: [PATCH] Prevent crash --- 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 e2b38ca859..e1207aff93 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -162,7 +162,7 @@ class Core { " group=" + group + " retry=" + retry); - if (!ifolder.isOpen()) + if (ifolder != null && !ifolder.isOpen()) state.error(new FolderClosedException(ifolder)); // Fetch most recent copy of message