From d182bd511bb635609316e3a6183dbc763e3c5793 Mon Sep 17 00:00:00 2001 From: Marcel Bokhorst Date: Mon, 22 Feb 2021 15: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 ab3774c70b..f8c60dc765 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -1890,7 +1890,7 @@ class Core { folder = db.folder().getFolderByName(account.id, fullName); if (folder == null) { EntityFolder parent = null; - int sep = fullName.lastIndexOf(account.separator); + int sep = fullName.lastIndexOf(separator); if (sep > 0) parent = db.folder().getFolderByName(account.id, fullName.substring(0, sep));