HHH-3847:
- applying a patch to fix the NPE git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16640 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
15cf066f96
commit
c44ff38d6d
|
@ -242,7 +242,7 @@ public class AuditEventListener implements PostInsertEventListener, PostUpdateEv
|
||||||
|
|
||||||
public void onPreRemoveCollection(PreCollectionRemoveEvent event) {
|
public void onPreRemoveCollection(PreCollectionRemoveEvent event) {
|
||||||
CollectionEntry collectionEntry = getCollectionEntry(event);
|
CollectionEntry collectionEntry = getCollectionEntry(event);
|
||||||
if (!collectionEntry.getLoadedPersister().isInverse()) {
|
if (collectionEntry != null && !collectionEntry.getLoadedPersister().isInverse()) {
|
||||||
onCollectionAction(event, null, collectionEntry.getSnapshot(), collectionEntry);
|
onCollectionAction(event, null, collectionEntry.getSnapshot(), collectionEntry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue