am 5bcb36eb
: Fix NPE from null Folder
* commit '5bcb36eb10c896c07b873fcbbab2610cfca58e5f': Fix NPE from null Folder
This commit is contained in:
commit
3ce46d4785
@ -136,6 +136,11 @@ public class EmailPreferenceMigrator extends BasePreferenceMigrator {
|
|||||||
try {
|
try {
|
||||||
if (folderCursor.moveToFirst()) {
|
if (folderCursor.moveToFirst()) {
|
||||||
folder = new Folder(folderCursor);
|
folder = new Folder(folderCursor);
|
||||||
|
} else {
|
||||||
|
LogUtils.e(LOG_TAG, "Empty folder cursor for mailbox %s",
|
||||||
|
LogUtils.sanitizeName(LOG_TAG,
|
||||||
|
account.settings.defaultInbox.toString()));
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
folderCursor.close();
|
folderCursor.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user