HHH-9221 - Binder#bindIdentifierGenerator leads to NPE due to bad Map calls

This commit is contained in:
Steve Ebersole 2014-07-02 09:01:58 -05:00
parent 8c42cc6899
commit b0a2ae9d66
1 changed files with 2 additions and 2 deletions

View File

@ -1324,10 +1324,10 @@ public class Binder {
.getService( ConfigurationService.class )
.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" );
}
if ( !properties.contains( PersistentIdentifierGenerator.IDENTIFIER_NORMALIZER ) ) {
if ( !properties.containsKey( PersistentIdentifierGenerator.IDENTIFIER_NORMALIZER ) ) {
properties.put(
PersistentIdentifierGenerator.IDENTIFIER_NORMALIZER,
rootBindingContext.getMetadataCollector().getObjectNameNormalizer()