diff --git a/src/main/java/org/prebid/server/spring/config/ServiceConfiguration.java b/src/main/java/org/prebid/server/spring/config/ServiceConfiguration.java index 540b9720074..b17ef930e52 100644 --- a/src/main/java/org/prebid/server/spring/config/ServiceConfiguration.java +++ b/src/main/java/org/prebid/server/spring/config/ServiceConfiguration.java @@ -1095,9 +1095,10 @@ DsaEnforcer dsaEnforcer() { Account defaultAccount(@Value("${settings.default-account-config:#{null}}") String defaultAccountConfig, JacksonMapper mapper) { try { - return StringUtils.isNotBlank(defaultAccountConfig) + final Account account = StringUtils.isNotBlank(defaultAccountConfig) ? mapper.decodeValue(defaultAccountConfig, Account.class) - : Account.builder().build(); + : null; + return account != null ? account : Account.builder().build(); } catch (DecodeException e) { logger.warn("Could not parse default account configuration", e); return Account.builder().build();