Skip to content

Commit 86b2803

Browse files
authored
Make PropertyMapper to use Keycloak options' default values (#29030)
* improved a condition in PropertyMapper.java Related to: #28856 Signed-off-by: Peter Zaoral <[email protected]>
1 parent d6f453f commit 86b2803

File tree

1 file changed

+1
-1
lines changed
  • quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/mappers

1 file changed

+1
-1
lines changed

quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/mappers/PropertyMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ ConfigValue getConfigValue(String name, ConfigSourceInterceptorContext context)
115115
// try to obtain the value for the property we want to map first
116116
ConfigValue config = convertValue(context.proceed(from));
117117

118-
if (config == null) {
118+
if (config == null || config.getValue() == null) {
119119
if (mapFrom != null) {
120120
// if the property we want to map depends on another one, we use the value from the other property to call the mapper
121121
String parentKey = MicroProfileConfigProvider.NS_KEYCLOAK_PREFIX + mapFrom;

0 commit comments

Comments
 (0)