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:
Adam Warski 2009-05-31 13:00:56 +00:00
parent 15cf066f96
commit c44ff38d6d
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ public class AuditEventListener implements PostInsertEventListener, PostUpdateEv
public void onPreRemoveCollection(PreCollectionRemoveEvent event) {
CollectionEntry collectionEntry = getCollectionEntry(event);
if (!collectionEntry.getLoadedPersister().isInverse()) {
if (collectionEntry != null && !collectionEntry.getLoadedPersister().isInverse()) {
onCollectionAction(event, null, collectionEntry.getSnapshot(), collectionEntry);
}
}