From ab6e719779e3e7d98e5d96a81024e6fcff3a2347 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 24 Apr 2022 09:55:04 +0200 Subject: [PATCH] Oops --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 032de95723..6917e470ac 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -1235,7 +1235,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences for (EntityAccount account : accounts) { JSONObject jcondition = new JSONObject(); try { - jcondition = new JSONObject(account.conditions); + if (!TextUtils.isEmpty(account.conditions)) + jcondition = new JSONObject(account.conditions); } catch (Throwable ex) { Log.e(ex); } @@ -2938,7 +2939,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences for (EntityAccount account : accounts) { JSONObject jcondition = new JSONObject(); try { - jcondition = new JSONObject(account.conditions); + if (!TextUtils.isEmpty(account.conditions)) + jcondition = new JSONObject(account.conditions); } catch (Throwable ex) { Log.e(ex); }