Merge commit 'c5abc6d636cff216ae1cb1e059ffc6d1ed4b3d69' into eclair-mr2-plus-aosp * commit 'c5abc6d636cff216ae1cb1e059ffc6d1ed4b3d69': Avoid NPE at onRefresh in MessageList
This commit is contained in:
commit
75e1743874
@ -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