mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-03 10:16:45 +00:00
Added fail-safe for empty folder list
This commit is contained in:
parent
563f6e764d
commit
6524591d89
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue