#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
@@ -18,7 +18,6 @@ import io.ebeaninternal.api.SpiTransaction;
import io.ebeaninternal.server.autotune.ProfilingListener;
import io.ebeaninternal.server.core.OrmQueryRequest;
import io.ebeaninternal.server.core.SpiOrmQueryRequest;
import io.ebeaninternal.server.deploy.BeanCollectionHelp;
import io.ebeaninternal.server.deploy.BeanCollectionHelpFactory;
import io.ebeaninternal.server.deploy.BeanDescriptor;
import io.ebeaninternal.server.deploy.BeanPropertyAssocMany;
@@ -236,7 +235,7 @@ public class CQuery<T> implements DbReadContext, CancelableQuery, SpiProfileTran
this.collection = (help != null ? help.createEmptyNoParent() : null);
}
private BeanCollectionHelp<T> createHelp(OrmQueryRequest<T> request) {
private CQueryCollectionAdd<T> createHelp(OrmQueryRequest<T> request) {
if (request.isFindById()) {
return null;
} else {