mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1836 - NPE with findCount() on bean with @Aggregation, Regression in 11.45.1
This commit is contained in:
@@ -3213,9 +3213,11 @@ public class BeanDescriptor<T> implements BeanType<T>, STreeType {
|
||||
private boolean includesAggregation(OrmQueryProperties rootProps) {
|
||||
if (rootProps != null) {
|
||||
final Set<String> included = rootProps.getIncluded();
|
||||
for (BeanProperty property : propertiesAggregate) {
|
||||
if (included.contains(property.getName())) {
|
||||
return true;
|
||||
if (included != null) {
|
||||
for (BeanProperty property : propertiesAggregate) {
|
||||
if (included.contains(property.getName())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user