Bug: 4969186
Change-Id: I27fbdf7a496ee73caf36a90bf56b91c90133b3b7
This commit is contained in:
Marc Blank 2011-06-28 10:58:22 -07:00
parent 5d7ff8577d
commit c0a9fa9c68

View File

@ -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;
}
}