diff --git a/envers/src/main/java/org/hibernate/envers/event/AuditEventListener.java b/envers/src/main/java/org/hibernate/envers/event/AuditEventListener.java index 58c3be9118..950a4f811d 100644 --- a/envers/src/main/java/org/hibernate/envers/event/AuditEventListener.java +++ b/envers/src/main/java/org/hibernate/envers/event/AuditEventListener.java @@ -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); } }