HHH-18218 - Fix possible null pointer

This commit is contained in:
Marco Belladelli 2024-06-12 16:14:39 +02:00
parent 4c8e72c5ec
commit 2772a9d6fb
1 changed files with 2 additions and 2 deletions

View File

@ -45,8 +45,8 @@ public class RowTransformerConstructorImpl<T> implements RowTransformer<T> {
private static Class<?> resolveElementJavaType(TupleElement<?> element) {
if ( element instanceof SqmExpressibleAccessor ) {
SqmExpressible expressible = ( (SqmExpressibleAccessor) element ).getExpressible();
if ( expressible != null ) {
final SqmExpressible<?> expressible = ( (SqmExpressibleAccessor<?>) element ).getExpressible();
if ( expressible != null && expressible.getExpressibleJavaType() != null ) {
return expressible.getExpressibleJavaType().getJavaTypeClass();
}
}