Fix issue performing searches when a special folder is null

This commit is contained in:
Philip Whitehouse 2017-02-04 15:55:02 +00:00
parent 8512b23633
commit 07416badc8

View file

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