Prevent crash

This commit is contained in:
M66B 2022-05-20 08:49:06 +02:00
parent e6395bdd8c
commit 89d02c604d
1 changed files with 1 additions and 1 deletions

View File

@ -2533,7 +2533,7 @@ class Core {
parent = db.folder().getFolderByName(account.id, fullName.substring(0, sep));
if (!EntityFolder.USER.equals(type) && !EntityFolder.SYSTEM.equals(type)) {
prefs.edit().remove("updated." + account.id + "." + folder.type).apply();
prefs.edit().remove("updated." + account.id + "." + type).apply();
EntityFolder has = db.folder().getFolderByType(account.id, type);
if (has != null)
type = EntityFolder.USER;