Skip to content

Commit

Permalink
Merge pull request #3997 from Coduz/fix-forwardableEntities
Browse files Browse the repository at this point in the history
🐛 (commons): fixes resolution of forwardable queries on forwardable entities when predicates are null
  • Loading branch information
Coduz authored Mar 19, 2024
2 parents 5f48751 + 197a8b9 commit aa54cb7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ public KapuaQuery transformInheritedQuery(@NotNull KapuaForwardableEntityQuery q
KapuaId scopeId = query.getScopeId();

// Replacement predicate root
AndPredicate newPred = query.andPredicate(query.getPredicate());
AndPredicate newPred = query.getPredicate() != null ?
query.andPredicate(query.getPredicate()) :
query.andPredicate();

// Create predicate to query ancestor accounts for entities that are forwardable
query.setScopeId(KapuaId.ANY);
Expand Down

0 comments on commit aa54cb7

Please sign in to comment.