mirror of https://github.com/M66B/FairEmail.git
Added fail-safe for empty folder list
This commit is contained in:
parent
563f6e764d
commit
6524591d89
|
@ -2120,6 +2120,11 @@ class Core {
|
||||||
" subscriptions=" + subscription.size() +
|
" subscriptions=" + subscription.size() +
|
||||||
" fetched in " + duration + " ms");
|
" fetched in " + duration + " ms");
|
||||||
|
|
||||||
|
if (ifolders.size() == 0) {
|
||||||
|
Log.e(account.host + " no folders listed");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Check if system folders were renamed
|
// Check if system folders were renamed
|
||||||
try {
|
try {
|
||||||
for (Pair<Folder, Folder> ifolder : ifolders) {
|
for (Pair<Folder, Folder> ifolder : ifolders) {
|
||||||
|
|
Loading…
Reference in New Issue