HHH-14936 Avoid NPE in JdbcConnectionContext's static init

This commit is contained in:
Yoann Rodière 2021-11-22 08:59:05 +01:00 committed by Christian Beikov
parent c3631970a5
commit 35f374aac7
1 changed files with 6 additions and 2 deletions

View File

@ -38,8 +38,12 @@ public final class JdbcConnectionContext {
password = connectionProperties.getProperty(
AvailableSettings.PASS );
Properties p = new Properties();
if ( user != null ) {
p.put( "user", user );
}
if ( password != null ) {
p.put( "password", password );
}
properties = p;
}
catch (Exception e) {