#1612 - query.setMapKey("customer.id") throws NullPointerException (ie. mapKey is a path rather than local property)

This commit is contained in:
rob bygrave
2019-01-21 21:57:30 +13:00
parent ab48f796c6
commit 4a0806e453
5 changed files with 63 additions and 19 deletions
@@ -24,16 +24,6 @@ public class BeanMapHelp<T> extends BaseCollectionHelp<T> {
private final String propertyName;
private final BeanProperty beanProperty;
/**
* When created for a given query that will return a map.
*/
BeanMapHelp(BeanDescriptor<T> targetDescriptor, String mapKey) {
this.targetDescriptor = targetDescriptor;
this.beanProperty = targetDescriptor.getBeanProperty(mapKey);
this.many = null;
this.propertyName = null;
}
/**
* When help is attached to a specific many property.
*/