Prevent crash

This commit is contained in:
Marcel Bokhorst 2021-02-22 15:51:02 +01:00 committed by GitHub
parent 84b2cf150c
commit d182bd511b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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));