#1574 - "NullPointerException" in query.copy().findList() but not in query.findList()

This commit is contained in:
rob bygrave
2018-12-16 00:29:18 +13:00
parent 6d5374e66a
commit d266d6d440
2 changed files with 49 additions and 9 deletions
@@ -4,13 +4,13 @@ import io.ebean.ExpressionFactory;
import io.ebean.FetchConfig;
import io.ebean.OrderBy;
import io.ebean.Query;
import io.ebean.util.SplitName;
import io.ebeaninternal.api.SpiExpression;
import io.ebeaninternal.api.SpiExpressionFactory;
import io.ebeaninternal.api.SpiExpressionList;
import io.ebeaninternal.api.SpiQuery;
import io.ebeaninternal.server.expression.FilterExprPath;
import io.ebeaninternal.server.expression.FilterExpressionList;
import io.ebean.util.SplitName;
import java.io.Serializable;
import java.util.ArrayList;
@@ -75,7 +75,7 @@ public class OrmQueryProperties implements Serializable {
* Construct for root so path (and parentPath) are null.
*/
public OrmQueryProperties() {
this((String) null);
this(null);
}
/**
@@ -157,6 +157,7 @@ public class OrmQueryProperties implements Serializable {
this.cache = source.cache;
this.readOnly = source.readOnly;
this.filterMany = source.filterMany;
this.markForQueryJoin = source.markForQueryJoin;
this.included = (source.included == null) ? null : new LinkedHashSet<>(source.included);
}