Merge commit '75e1743874df41079c9e2369b9033d6e981ac088' * commit '75e1743874df41079c9e2369b9033d6e981ac088': Avoid NPE at onRefresh in MessageList
This commit is contained in:
commit
361efd4f9c
@ -527,7 +527,9 @@ public class MessageList extends ListActivity implements OnItemClickListener, On
|
|||||||
// TODO: Should not be reading from DB in UI thread - need a cleaner way to get accountId
|
// TODO: Should not be reading from DB in UI thread - need a cleaner way to get accountId
|
||||||
if (mMailboxId >= 0) {
|
if (mMailboxId >= 0) {
|
||||||
Mailbox mailbox = Mailbox.restoreMailboxWithId(this, mMailboxId);
|
Mailbox mailbox = Mailbox.restoreMailboxWithId(this, mMailboxId);
|
||||||
mController.updateMailbox(mailbox.mAccountKey, mMailboxId, mControllerCallback);
|
if (mailbox != null) {
|
||||||
|
mController.updateMailbox(mailbox.mAccountKey, mMailboxId, mControllerCallback);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user