Make PropertyMapper to use Keycloak options' default values (#29030)
* improved a condition in PropertyMapper.java Related to: #28856 Signed-off-by: Peter Zaoral <pzaoral@redhat.com>
This commit is contained in:
parent
d6f453f0d6
commit
86b280349b
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ public class PropertyMapper<T> {
|
|||
// 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;
|
||||
|
|
Loading…
Reference in a new issue