From c01293a53c6e67280000dbea45d1c74982716fce Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 10 Aug 2019 08:21:23 +0200 Subject: [PATCH] Handle folder not found for offline operations --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 08a57da28b..bc54c07219 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -1076,6 +1076,9 @@ public class ServiceSynchronize extends ServiceBase { iservice.getStore(), ifolder, state); + } catch (FolderNotFoundException ex) { + Log.w(ex); + db.folder().deleteFolder(folder.id); } catch (Throwable ex) { Log.e(folder.name, ex); EntityLog.log(