Skip to content

Commit 0ffe6e7

Browse files
committed
HHH-7912 - Define edge-case behavior for Session.evict
1 parent 78d1a9f commit 0ffe6e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hibernate-core/src/main/java/org/hibernate/engine/internal/EntityEntryContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Hibernate, Relational Persistence for Idiomatic Java
33
*
4-
* Copyright (c) 2012, Red Hat Inc. or third-party contributors as
4+
* Copyright (c) 2013, Red Hat Inc. or third-party contributors as
55
* indicated by the @author tags or express copyright attribution
66
* statements applied by the authors. All third-party contributions are
77
* distributed under license by Red Hat Inc.
@@ -163,7 +163,7 @@ else if ( nonEnhancedEntityXref == null ) {
163163
}
164164

165165
if ( managedEntity == null ) {
166-
throw new AssertionFailure( "Unable to resolve entity reference to EntityEntry for removal" );
166+
return null;
167167
}
168168

169169
// prepare for re-linking...

0 commit comments

Comments
 (0)