Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lashinijay committed Jun 6, 2024
1 parent 0afcb52 commit caa6430
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.json.JSONObject;
import org.wso2.carbon.CarbonConstants;
import org.wso2.carbon.context.PrivilegedCarbonContext;
import org.wso2.carbon.identity.application.authentication.framework.util.FrameworkUtils;
import org.wso2.carbon.identity.application.common.model.Property;
import org.wso2.carbon.identity.application.common.model.User;
import org.wso2.carbon.identity.auth.attribute.handler.exception.AuthAttributeHandlerClientException;
Expand Down Expand Up @@ -1709,10 +1710,11 @@ public static List<String> getExistingClaimValue(org.wso2.carbon.user.core.UserS

List<String> existingClaimValue;
try {
String multiAttributeSeparator = FrameworkUtils.getMultiAttributeSeparator();
existingClaimValue = StringUtils.isNotBlank(userStoreManager.getUserClaimValue(user.getUserName(),
claimURI, null)) ?
new LinkedList<>(Arrays.asList(userStoreManager.getUserClaimValue(user.getUserName(), claimURI,
null).split(","))) : new ArrayList<>();
null).split(multiAttributeSeparator))) : new ArrayList<>();
} catch (org.wso2.carbon.user.core.UserStoreException e) {
throw new IdentityEventException("Error occurred while retrieving claim value of " + claimURI +
" for user: " + user.toFullQualifiedUsername(), e);
Expand Down

0 comments on commit caa6430

Please sign in to comment.