HHH-18373 Fix NPE when accessing parameter type of JPA Criteria value parameter

This commit is contained in:
Christian Beikov 2024-08-07 16:12:48 +02:00
parent 46b2739061
commit 171488a762
1 changed files with 3 additions and 2 deletions

View File

@ -122,12 +122,13 @@ public class JpaCriteriaParameter<T>
@Override
public BindableType<T> getHibernateType() {
return this.getNodeType();
return getNodeType();
}
@Override
public Class<T> getParameterType() {
return this.getNodeType().getExpressibleJavaType().getJavaTypeClass();
final SqmExpressible<T> nodeType = getNodeType();
return nodeType == null ? null : nodeType.getExpressibleJavaType().getJavaTypeClass();
}
@Override