Added fail-safe for empty folder list

This commit is contained in:
M66B 2021-10-02 16:32:13 +02:00
parent 563f6e764d
commit 6524591d89
1 changed files with 5 additions and 0 deletions

View File

@ -2120,6 +2120,11 @@ class Core {
" subscriptions=" + subscription.size() +
" fetched in " + duration + " ms");
if (ifolders.size() == 0) {
Log.e(account.host + " no folders listed");
return;
}
// Check if system folders were renamed
try {
for (Pair<Folder, Folder> ifolder : ifolders) {