Fix for #277 - please check fetchPaths not null - NPE on OrmQueryDetail.convertManyFetchJoinsToQueryJoins(OrmQueryDetail.java:331)

This commit is contained in:
rbygrave committed 2015-04-24 22:18:22 +12:00
1 parent 1260edc8ed
commit 0c5e092d16
2 files changed
+20 -1

No files matched your search

@@ -328,7 +328,7 @@ public class OrmQueryDetail implements Serializable {
for (String fetchPath : fetchPaths.keySet()) {
ElPropertyDeploy elProp = beanDescriptor.getElPropertyDeploy(fetchPath);
if (elProp.containsManySince(manyFetchProperty)) {
if (elProp != null && elProp.containsManySince(manyFetchProperty)) {
// this is a join to a *ToMany
OrmQueryProperties chunk = fetchPaths.get(fetchPath);