If all filters are null OR is empty...

This commit is contained in:
Andrius Juozapaitis 2012-07-10 23:29:29 +03:00 committed by Shay Banon
parent 83a61cae36
commit c3ccfe001a
1 changed files with 3 additions and 3 deletions

View File

@ -117,9 +117,9 @@ public class BoolFilterParser implements FilterParser {
}
}
if ((boolFilter.getMustFilters() != null && boolFilter.getMustFilters().isEmpty())
&& (boolFilter.getNotFilters() != null && boolFilter.getNotFilters().isEmpty())
&& (boolFilter.getShouldFilters() != null && boolFilter.getShouldFilters().isEmpty())) {
if ((boolFilter.getMustFilters() == null || boolFilter.getMustFilters().isEmpty())
&& (boolFilter.getNotFilters() == null || boolFilter.getNotFilters().isEmpty())
&& (boolFilter.getShouldFilters() == null || boolFilter.getShouldFilters().isEmpty())) {
return null;
}