Skip to content

Conversation

@rbygrave
Copy link
Member

For FilterMany with QueryBeans, it creates a queryBean to build the filterMany predicates with. This query bean needed 2 changes for this fix:

  1. Needs to set it's internal "root" such that it supports chaining (required for or() etc)
  2. The ExpressionFactory needs to be explicitly passed to the expression list (rather than get it from the query which is actually null in this case).

For FilterMany with QueryBeans, it creates a queryBean to build the filterMany predicates with. This query bean needed 2 changes for this fix:

1. Needs to set it's internal "root" such that it supports chaining (required for or() etc)
2. The ExpressionFactory needs to be explicitly passed to the expression list (rather than get it from the query which is actually null in this case).
@rbygrave rbygrave self-assigned this Aug 29, 2025
@rbygrave rbygrave added this to the 16.0.1 milestone Aug 29, 2025
@rbygrave rbygrave merged commit 5f74a53 into master Aug 30, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NPE using filterMany() that contains an or() - NPE Cannot invoke "io.ebean.Query.getExpressionFactory()" because "query" is null

2 participants