Fix potential NPE
Happened to find this. Change-Id: I0b71d80a421adad196d8cd113001f2f9fe5a9445
This commit is contained in:
parent
cc91619b6a
commit
1ed2c7a15d
@ -1419,6 +1419,10 @@ public class MessagingController implements Runnable {
|
|||||||
mailbox = Mailbox.restoreMailboxWithId(mContext, oldMessage.mMailboxKey);
|
mailbox = Mailbox.restoreMailboxWithId(mContext, oldMessage.mMailboxKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mailbox == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// 1. No remote update for DRAFTS or OUTBOX
|
// 1. No remote update for DRAFTS or OUTBOX
|
||||||
if (mailbox.mType == Mailbox.TYPE_DRAFTS || mailbox.mType == Mailbox.TYPE_OUTBOX) {
|
if (mailbox.mType == Mailbox.TYPE_DRAFTS || mailbox.mType == Mailbox.TYPE_OUTBOX) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user