Skip to content

Commit

Permalink
Fix application start-up
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoxaAntoxic committed Feb 21, 2024
1 parent 887d469 commit ec08abe
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ec08abe

Please sign in to comment.