HHH-17674 NullPointerException thrown when loading entity previously evicted and proxied

This commit is contained in:
Andrea Boriero 2024-01-24 14:36:30 +01:00 committed by Christian Beikov
parent e0ea066d3f
commit f2a699bafa
1 changed files with 1 additions and 0 deletions

View File

@ -515,6 +515,7 @@ public class StatefulPersistenceContext implements PersistenceContext {
if ( holder != null ) {
final Object entity = holder.entity;
if ( holder.proxy != null ) {
holder.entity = null;
entitiesByKey.put( key, holder );
}
return entity;