Skip to content

Commit

Permalink
Make PropertyMapper to use Keycloak options' default values
Browse files Browse the repository at this point in the history
* improved a condition in PropertyMapper.java

Co-authored-by: Steven Hawkins <[email protected]>
Co-authored-by: Václav Muzikář <[email protected]>

Related to: keycloak#28856

Signed-off-by: Peter Zaoral <[email protected]>
  • Loading branch information
Pepo48 committed Apr 23, 2024
1 parent d65649d commit 3c0f285
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ ConfigValue getConfigValue(String name, ConfigSourceInterceptorContext context)
// try to obtain the value for the property we want to map first
ConfigValue config = convertValue(context.proceed(from));

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

0 comments on commit 3c0f285

Please sign in to comment.