Author: adamw
Date: 2009-05-31 09:00:56 -0400 (Sun, 31 May 2009)
New Revision: 16640
Modified:
core/trunk/envers/src/main/java/org/hibernate/envers/event/AuditEventListener.java
Log:
HHH-3847:
- applying a patch to fix the NPE
Modified:
core/trunk/envers/src/main/java/org/hibernate/envers/event/AuditEventListener.java
===================================================================
---
core/trunk/envers/src/main/java/org/hibernate/envers/event/AuditEventListener.java 2009-05-29
06:21:22 UTC (rev 16639)
+++
core/trunk/envers/src/main/java/org/hibernate/envers/event/AuditEventListener.java 2009-05-31
13:00:56 UTC (rev 16640)
@@ -242,7 +242,7 @@
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);
}
}
Show replies by date