Skip to content

Commit

Permalink
Add StringUtils.isEmpty() check to single line
Browse files Browse the repository at this point in the history
  • Loading branch information
PasinduYeshan committed Jul 27, 2023
1 parent 985923e commit 7cf14d5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -947,9 +947,8 @@ private List<Map<String, String>> transformMembersAttributeToMap(MultiValuedAttr
throw new BadRequestException(ResponseCodeConstants.DESC_BAD_REQUEST,
ResponseCodeConstants.INVALID_SYNTAX);
} else {
SimpleAttribute valueAttribute = (SimpleAttribute)
subAttributesList.get(SCIMConstants.CommonSchemaConstants.VALUE);
if (StringUtils.isEmpty(valueAttribute.getStringValue())) {
if (StringUtils.isEmpty(((SimpleAttribute)
subAttributesList.get(SCIMConstants.CommonSchemaConstants.VALUE)).getStringValue())) {
throw new BadRequestException(ResponseCodeConstants.DESC_BAD_REQUEST,
ResponseCodeConstants.INVALID_VALUE);
}
Expand Down

0 comments on commit 7cf14d5

Please sign in to comment.