Skip to content

Commit ddeb5d1

Browse files
committed
Fix SessionEventListenerManager serialization issue
1 parent 9526944 commit ddeb5d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hibernate-core/src/main/java/org/hibernate/internal/AbstractSharedSessionContract.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,7 @@ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFound
11831183
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11841184
// Step 1 :: read back non-transient state...
11851185
ois.defaultReadObject();
1186+
sessionEventsManager = new SessionEventListenerManagerImpl();
11861187

11871188
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11881189
// Step 2 :: read back transient state...

0 commit comments

Comments
 (0)