HHH-18373 Fix NPE when accessing parameter type of JPA Criteria value parameter
This commit is contained in:
parent
46b2739061
commit
171488a762
|
@ -122,12 +122,13 @@ public class JpaCriteriaParameter<T>
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BindableType<T> getHibernateType() {
|
public BindableType<T> getHibernateType() {
|
||||||
return this.getNodeType();
|
return getNodeType();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Class<T> getParameterType() {
|
public Class<T> getParameterType() {
|
||||||
return this.getNodeType().getExpressibleJavaType().getJavaTypeClass();
|
final SqmExpressible<T> nodeType = getNodeType();
|
||||||
|
return nodeType == null ? null : nodeType.getExpressibleJavaType().getJavaTypeClass();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue