HHH-18218 - Fix possible null pointer

This commit is contained in:
Marco Belladelli 2024-06-12 16:14:39 +02:00
parent 8dbbb40e43
commit 66c5bd5dc2
No known key found for this signature in database
GPG Key ID: DBD6E257ABE9EA3D
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,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();
}
}