Skip to content

Commit

Permalink
return default value when property doesn't exist
Browse files Browse the repository at this point in the history
Signed-off-by: Marlon Pina Tojal <marlont@backbase.com>
  • Loading branch information
Marlon Pina Tojal committed Apr 18, 2024
1 parent 8cd2748 commit d6de7d4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,8 @@ public boolean isEnabled(final ConfigPropertyConstants configPropertyConstants)
);
if (property != null && ConfigProperty.PropertyType.BOOLEAN == property.getPropertyType()) {
return BooleanUtil.valueOf(property.getPropertyValue());
} else if (property == null) {
return BooleanUtil.valueOf(configPropertyConstants.getDefaultPropertyValue());
}
return false;
}
Expand Down

0 comments on commit d6de7d4

Please sign in to comment.