diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 0cb6d4aa18..d7bbd093c7 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -1365,8 +1365,10 @@ class Core { Folder[] isubscribed = defaultFolder.listSubscribed("*"); for (Folder ifolder : isubscribed) { String fullName = ifolder.getFullName(); - if (TextUtils.isEmpty(fullName)) + if (TextUtils.isEmpty(fullName)) { + Log.e("Subscribed folder name empty namespace=" + defaultFolder.getFullName()); continue; + } subscription.add(fullName); Log.i("Subscribed " + defaultFolder.getFullName() + ":" + fullName); } @@ -1398,8 +1400,10 @@ class Core { Folder[] isubscribed = namespace.listSubscribed("*"); for (Folder ifolder : isubscribed) { String fullName = ifolder.getFullName(); - if (TextUtils.isEmpty(fullName)) + if (TextUtils.isEmpty(fullName)) { + Log.e("Subscribed folder name empty namespace=" + namespace.getFullName()); continue; + } subscription.add(fullName); Log.i("Subscribed " + namespace.getFullName() + ":" + fullName); }