From a0265c594b1a27d20f9405f5da61f3d0b0ad65c9 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 21 Apr 2022 08:46:56 +0200 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 a0053f8164..2fec21d732 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -2327,7 +2327,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences @Override public void delegate() { try { - cowner.value.destroy(); + if (cowner.value != null) + cowner.value.destroy(); } catch (Throwable ex) { Log.e(ex); } finally {