#1836 - NPE with findCount() on bean with @Aggregation, Regression in 11.45.1

This commit is contained in:
rob bygrave
2019-10-10 08:55:01 +13:00
parent 769fc485ec
commit a3f9c4c889
2 changed files with 23 additions and 3 deletions
@@ -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;
}
}
}
}