Prevent crash

pull/194/head
Marcel Bokhorst 4 years ago committed by GitHub
parent 84b2cf150c
commit d182bd511b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save