From 5b2dbea1307cf329eb25933c4183ef378c6f3268 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 21 Jun 2020 13:30:00 +0200 Subject: [PATCH] Added logging --- app/src/main/java/eu/faircode/email/Core.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); }