HHH-16977 Fixed in NullPointerException in EntityEntryContext.downgradeLocks
This commit is contained in:
parent
c7bafd646a
commit
bde1034aee
|
@ -402,7 +402,10 @@ public class EntityEntryContext {
|
|||
}
|
||||
|
||||
private static void downgradeLockOnManagedEntity(final ManagedEntity node) {
|
||||
node.$$_hibernate_getEntityEntry().setLockMode( LockMode.NONE );
|
||||
final EntityEntry entityEntry = node.$$_hibernate_getEntityEntry();
|
||||
if ( entityEntry != null ) {
|
||||
entityEntry.setLockMode( LockMode.NONE );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue