HHH-13003 Skip processing of empty resource names defined for hibernate.hbm2ddl.import_files

This commit is contained in:
Sanne Grinovero 2018-10-01 22:57:23 +01:00
parent 4b19bdc619
commit 97b49349ad
2 changed files with 4 additions and 3 deletions

View File

@ -44,9 +44,6 @@ public final class ConfigurationHelper {
if ( value == null ) {
return null;
}
if ( String.class.isInstance( value ) ) {
return (String) value;
}
return value.toString();
}

View File

@ -483,6 +483,10 @@ public class SchemaCreatorImpl implements SchemaCreator {
for ( String currentFile : importFiles.split( "," ) ) {
final String resourceName = currentFile.trim();
if ( "".equals( resourceName ) ) {
//skip empty resource names
continue;
}
final ScriptSourceInput importScriptInput = interpretLegacyImportScriptSetting( resourceName, classLoaderService, charsetName );
importScriptInput.prepare();
try {