Fix NPE
Bug: 4969186 Change-Id: I27fbdf7a496ee73caf36a90bf56b91c90133b3b7
This commit is contained in:
parent
5d7ff8577d
commit
c0a9fa9c68
@ -877,10 +877,11 @@ public class EmailProvider extends ContentProvider {
|
||||
private long getMailboxIdFromMailboxTypeMap(long accountId, int type) {
|
||||
synchronized(mMailboxTypeMap) {
|
||||
HashMap<Integer, Long> accountMap = mMailboxTypeMap.get(accountId);
|
||||
long mailboxId = -1;
|
||||
Long mailboxId = null;
|
||||
if (accountMap != null) {
|
||||
mailboxId = accountMap.get(type);
|
||||
}
|
||||
if (mailboxId == null) return Mailbox.NO_MAILBOX;
|
||||
return mailboxId;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user