Fix potential NPE

Happened to find this.

Change-Id: I0b71d80a421adad196d8cd113001f2f9fe5a9445
This commit is contained in:
Makoto Onuki 2010-09-14 17:26:13 -07:00
parent cc91619b6a
commit 1ed2c7a15d

View File

@ -1419,6 +1419,10 @@ public class MessagingController implements Runnable {
mailbox = Mailbox.restoreMailboxWithId(mContext, oldMessage.mMailboxKey);
}
if (mailbox == null) {
return;
}
// 1. No remote update for DRAFTS or OUTBOX
if (mailbox.mType == Mailbox.TYPE_DRAFTS || mailbox.mType == Mailbox.TYPE_OUTBOX) {
return;