Skip to content

Commit

Permalink
fix returning empty associated app list
Browse files Browse the repository at this point in the history
  • Loading branch information
AnuradhaSK committed Oct 15, 2023
1 parent 8376f51 commit 14cfc5b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ public RoleV2 getRole(String roleID, Map<String, Boolean> requiredAttributes)
// Set associated applications.
List<MultiValuedComplexType> associatedApps =
convertAssociatedAppsToMultivaluedComplexType(role.getAssociatedApplications());
scimRole.setAssociatedApplications(associatedApps);
if (CollectionUtils.isNotEmpty(associatedApps)) {
scimRole.setAssociatedApplications(associatedApps);
}
return scimRole;
} catch (IdentityRoleManagementException e) {
if (StringUtils.equals(ROLE_NOT_FOUND.getCode(), e.getErrorCode())) {
Expand Down

0 comments on commit 14cfc5b

Please sign in to comment.