mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
fix NullPtr Exception when there is no Sent Mail folder on the imap server
This commit is contained in:
parent
ad46c5a22e
commit
f90fccbfa7
@ -873,7 +873,7 @@ public class AccountSettings extends K9PreferenceActivity {
|
||||
Iterator <? extends Folder > iter = folders.iterator();
|
||||
while (iter.hasNext()) {
|
||||
Folder folder = iter.next();
|
||||
if (mAccount.getOutboxFolderName().equalsIgnoreCase(folder.getName())) {
|
||||
if (mAccount.getOutboxFolderName() != null && mAccount.getOutboxFolderName().equalsIgnoreCase(folder.getName())) {
|
||||
iter.remove();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user