diff --git a/pom.xml b/pom.xml index ae57715954..f8278ff4f6 100644 --- a/pom.xml +++ b/pom.xml @@ -41,7 +41,7 @@ jboss-snapshots-repository https://s01.oss.sonatype.org/content/repositories/snapshots/ - 3.0.0.Beta1 + 3.0.0.Final ${timestamp} diff --git a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/Configuration.java b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/Configuration.java index efa108a8ab..b697cdfd0b 100644 --- a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/Configuration.java +++ b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/Configuration.java @@ -74,13 +74,7 @@ public final class Configuration { } public static String getRawValue(String propertyName) { - try { - return getConfig().getRawValue(propertyName); - } catch (NullPointerException ignore) { - // Tracker issue: https://github.com/keycloak/keycloak/issues/19084 - // Try-catch block can be removed once https://github.com/smallrye/smallrye-config/issues/906 is resolved - return null; - } + return getConfig().getRawValue(propertyName); } public static Iterable getPropertyNames() { @@ -88,13 +82,7 @@ public final class Configuration { } public static ConfigValue getConfigValue(String propertyName) { - try { - return getConfig().getConfigValue(propertyName); - } catch (NullPointerException ignore) { - // Tracker issue: https://github.com/keycloak/keycloak/issues/19084 - // Try-catch block can be removed once https://github.com/smallrye/smallrye-config/issues/906 is resolved - return null; - } + return getConfig().getConfigValue(propertyName); } public static ConfigValue getKcConfigValue(String propertyName) { @@ -102,13 +90,7 @@ public final class Configuration { } public static Optional getOptionalValue(String name) { - try { - return getConfig().getOptionalValue(name, String.class); - } catch (NullPointerException ignore) { - // Tracker issue: https://github.com/keycloak/keycloak/issues/19084 - // Try-catch block can be removed once https://github.com/smallrye/smallrye-config/issues/906 is resolved - return Optional.empty(); - } + return getConfig().getOptionalValue(name, String.class); } public static Optional getOptionalKcValue(String propertyName) {