mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-24 08:38:51 -05:00
Fix a NPE
This commit is contained in:
parent
30d31c7074
commit
a9b28d62d7
@ -34,7 +34,7 @@ public class ActivityListener extends MessagingListener {
|
||||
|
||||
if (mLoadingFolderName != null || mLoadingHeaderFolderName != null) {
|
||||
String displayName = mLoadingFolderName;
|
||||
if (mAccount.getInboxFolderName().equalsIgnoreCase(displayName)) {
|
||||
if ((mAccount != null) && (mAccount.getInboxFolderName()!= null) && mAccount.getInboxFolderName().equalsIgnoreCase(displayName)) {
|
||||
displayName = context.getString(R.string.special_mailbox_name_inbox);
|
||||
} else if ((mAccount != null) && mAccount.getOutboxFolderName().equals(displayName)) {
|
||||
displayName = context.getString(R.string.special_mailbox_name_outbox);
|
||||
|
Loading…
Reference in New Issue
Block a user