Skip to content

Commit

Permalink
Fix identityServer.getProperty default value handling (WrenSecurity#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelhoral committed Aug 12, 2024
1 parent 69a28d0 commit 7fa46a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ public Object call(Parameter scope, Function<?> callback, Object... arguments)
result = propertiesCache.get(name);
}
if (null == result) {
Object defaultValue = arguments.length == 2 ? arguments[1] : null;
Object defaultValue = arguments.length > 1 ? arguments[1] : null;
result = IdentityServer.getInstance().getProperty(name, defaultValue, Object.class);
propertiesCache.putIfAbsent(name, result);
}
Expand Down

0 comments on commit 7fa46a1

Please sign in to comment.