Merge change Ie90b74aa into eclair

* changes:
  Avoid NPE at onRefresh in MessageList
This commit is contained in:
Android (Google) Code Review 2009-10-05 22:31:42 -04:00
commit d493ba257a

View File

@ -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
if (mMailboxId >= 0) {
Mailbox mailbox = Mailbox.restoreMailboxWithId(this, mMailboxId);
mController.updateMailbox(mailbox.mAccountKey, mMailboxId, mControllerCallback);
if (mailbox != null) {
mController.updateMailbox(mailbox.mAccountKey, mMailboxId, mControllerCallback);
}
}
}