HHH-17561 Fix NPE when checking Oracle autonomous database

This commit is contained in:
Marco Belladelli 2023-12-13 13:41:42 +01:00 committed by Christian Beikov
parent 39c2ab2747
commit 8bd0d75eee
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public class OracleServerConfiguration {
}
private static boolean isAutonomous(String cloudServiceParam) {
return List.of( "OLTP", "DWCS", "JSON" ).contains( cloudServiceParam );
return cloudServiceParam != null && List.of( "OLTP", "DWCS", "JSON" ).contains( cloudServiceParam );
}
private static boolean isAutonomous(DatabaseMetaData databaseMetaData) {