HHH-18218 - Fix possible null pointer
This commit is contained in:
parent
8dbbb40e43
commit
66c5bd5dc2
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue