diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/OracleServerConfiguration.java b/hibernate-core/src/main/java/org/hibernate/dialect/OracleServerConfiguration.java index d6559adf27..86feb9b77f 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/OracleServerConfiguration.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/OracleServerConfiguration.java @@ -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) {