From 6dbd487afcae266b0570924597e1b2280b1577ce Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 14 Sep 2018 17:01:12 +0000 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 2c3b7dc3..22a30672 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -941,7 +941,8 @@ public class ServiceSynchronize extends LifecycleService { if (ex instanceof SendFailedException) reportError(null, folder.name, ex); - db.message().setMessageError(message.id, Helper.formatThrowable(ex)); + if (message != null) + db.message().setMessageError(message.id, Helper.formatThrowable(ex)); if (ex instanceof MessageRemovedException || ex instanceof FolderNotFoundException ||