mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 11:28:41 +01:00
Added fail-safe for empty folder list
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user