HHH-18218 - Fix possible null pointer
This commit is contained in:
parent
4c8e72c5ec
commit
2772a9d6fb
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue