Skip to content

Commit

Permalink
NPE fix. no need to check definition presence, if any filter wasn't d…
Browse files Browse the repository at this point in the history
…efined.
  • Loading branch information
katkav committed Sep 25, 2021
1 parent ad0f851 commit 84f809f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ public static boolean hasAllDefinitions(ObjectQuery query) {

public static boolean hasAllDefinitions(ObjectFilter filter) {
final MutableBoolean hasAllDefinitions = new MutableBoolean(true);
if (filter == null) {
return hasAllDefinitions.booleanValue();
}
Visitor visitor = f -> {
if (f instanceof ValueFilter) {
ItemDefinition<?> definition = ((ValueFilter<?, ?>) f).getDefinition();
Expand Down

0 comments on commit 84f809f

Please sign in to comment.