]
Diego Plentz resolved HHH-3885.
-------------------------------
Resolution: Duplicate
Assignee: Diego Plentz
saving new entity with immutable natural id leads to NPE
--------------------------------------------------------
Key: HHH-3885
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3885
Project: Hibernate Core
Issue Type: Bug
Affects Versions: 3.2.2
Reporter: Michael Kopp
Assignee: Diego Plentz
checkNaturalId in DefaultFlushEntityEventListener gets a snapshot via
getNaturalIdSnapshot if the loaded variable is null. The result of that is null if nothing
exists in the database yet. A couple of lines down the variable is used without null check
--> NPE.
still there in trunk as well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: