HHH-17674 NullPointerException thrown when loading entity previously evicted and proxied
This commit is contained in:
parent
e0ea066d3f
commit
f2a699bafa
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue