Skip to content

Commit

Permalink
[SHIBUI-1058][SHIBUI-1230]
Browse files Browse the repository at this point in the history
Fixed a casting bug related to converting a boolean attribute to a
string value.
  • Loading branch information
Bill Smith committed Feb 14, 2019
1 parent 22d3f57 commit 2fd8f8d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ public List<Attribute> getAttributeListFromRelyingPartyOverridesRepresentation(M
case BOOLEAN:
if (overrideProperty.getPersistType() != null &&
!overrideProperty.getPersistType().equalsIgnoreCase("boolean") &&
((entry.getValue() instanceof Boolean && (Boolean)entry.getValue()) || Boolean.valueOf((String)entry.getValue()))) {
((entry.getValue() instanceof Boolean && (Boolean)entry.getValue()) ||
((entry.getValue() instanceof String) && Boolean.valueOf((String)entry.getValue())))) {
list.add(attributeUtility.createAttributeWithStringValues(overrideProperty.getAttributeName(),
overrideProperty.getAttributeFriendlyName(),
overrideProperty.getPersistValue()));
Expand Down

0 comments on commit 2fd8f8d

Please sign in to comment.