Fix issue performing searches when a special folder is null
This commit is contained in:
parent
8512b23633
commit
07416badc8
1 changed files with 1 additions and 1 deletions
|
@ -1840,7 +1840,7 @@ public class Account implements BaseAccount, StoreConfig {
|
|||
}
|
||||
|
||||
private void excludeSpecialFolder(LocalSearch search, String folderName) {
|
||||
if (!K9.FOLDER_NONE.equals(folderName)) {
|
||||
if (folderName != null && !K9.FOLDER_NONE.equals(folderName)) {
|
||||
search.and(SearchField.FOLDER, folderName, Attribute.NOT_EQUALS);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue