mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
Natural-id : NullPointerException after persisting null String value, if using @NaturalIdCache
This commit is contained in:
parent
88e231f50b
commit
7abdf80ebe
@ -76,7 +76,7 @@ public NaturalIdCacheKey(
|
||||
final Type type = propertyTypes[naturalIdPropertyIndexes[i]];
|
||||
final Object value = naturalIdValues[i];
|
||||
|
||||
result = prime * result + type.getHashCode( value, factory );
|
||||
result = prime * result + (value != null ? type.getHashCode( value, factory ) : 0);
|
||||
|
||||
disassembledNaturalId[i] = type.disassemble( value, session, null );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user