HHH-9221 - Binder#bindIdentifierGenerator leads to NPE due to bad Map calls
This commit is contained in:
parent
8c42cc6899
commit
b0a2ae9d66
|
@ -1324,10 +1324,10 @@ public class Binder {
|
||||||
.getService( ConfigurationService.class )
|
.getService( ConfigurationService.class )
|
||||||
.getSettings()
|
.getSettings()
|
||||||
);
|
);
|
||||||
if ( !properties.contains( AvailableSettings.PREFER_POOLED_VALUES_LO ) ) {
|
if ( !properties.containsKey( AvailableSettings.PREFER_POOLED_VALUES_LO ) ) {
|
||||||
properties.put( AvailableSettings.PREFER_POOLED_VALUES_LO, "false" );
|
properties.put( AvailableSettings.PREFER_POOLED_VALUES_LO, "false" );
|
||||||
}
|
}
|
||||||
if ( !properties.contains( PersistentIdentifierGenerator.IDENTIFIER_NORMALIZER ) ) {
|
if ( !properties.containsKey( PersistentIdentifierGenerator.IDENTIFIER_NORMALIZER ) ) {
|
||||||
properties.put(
|
properties.put(
|
||||||
PersistentIdentifierGenerator.IDENTIFIER_NORMALIZER,
|
PersistentIdentifierGenerator.IDENTIFIER_NORMALIZER,
|
||||||
rootBindingContext.getMetadataCollector().getObjectNameNormalizer()
|
rootBindingContext.getMetadataCollector().getObjectNameNormalizer()
|
||||||
|
|
Loading…
Reference in New Issue