From 8bd0d75eeefaffdc898a166ac18b109fa7b9de3f Mon Sep 17 00:00:00 2001 From: Marco Belladelli Date: Wed, 13 Dec 2023 13:41:42 +0100 Subject: [PATCH] HHH-17561 Fix NPE when checking Oracle autonomous database --- .../java/org/hibernate/dialect/OracleServerConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {