avoid NPE with no proxy-class defined

This commit is contained in:
Steve Ebersole 2019-09-25 11:36:25 -05:00
parent 7fd33fdd93
commit 12ca8a2a81
1 changed files with 2 additions and 1 deletions

View File

@ -5283,7 +5283,8 @@ public abstract class AbstractEntityPersister
}
public Class getConcreteProxyClass() {
return getRepresentationStrategy().getProxyJavaTypeDescriptor().getJavaType();
final JavaTypeDescriptor<?> proxyJavaTypeDescriptor = getRepresentationStrategy().getProxyJavaTypeDescriptor();
return proxyJavaTypeDescriptor != null ? proxyJavaTypeDescriptor.getJavaType() : javaTypeDescriptor.getJavaType();
}
public void setPropertyValues(Object object, Object[] values) {