am 5bcb36eb: Fix NPE from null Folder

* commit '5bcb36eb10c896c07b873fcbbab2610cfca58e5f':
  Fix NPE from null Folder
This commit is contained in:
Jay Shrauner 2014-07-16 19:17:22 +00:00 committed by Android Git Automerger
commit 3ce46d4785

View File

@ -136,6 +136,11 @@ public class EmailPreferenceMigrator extends BasePreferenceMigrator {
try {
if (folderCursor.moveToFirst()) {
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 {
folderCursor.close();