Commit 2409f4e7 authored by Viacheslav Pavlov's avatar Viacheslav Pavlov

Fixed generation of NULL/NOTNULL paths for collection paths

parent 8c959f39
......@@ -200,6 +200,8 @@ public abstract class BasicModelFilter<T extends BasicModelFilter<T, R>, R exten
final Field prop = clazz.getField(nullProp);
if (SimpleExpression.class.isAssignableFrom(prop.getType())) {
return (SimpleExpression<?>) prop.get(instance);
} if (CollectionPathBase.class.isAssignableFrom(prop.getType())) {
return(CollectionPathBase<?, ?, ?>) prop.get(instance);
} else {
throw new NoSuchFieldException("Property " + nullProp + " is not a SimpleExpression");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment