Validation of Null value  of localClaim variable
if (userRealmInfo == null) {
userRealmInfo = userAdminClient.getUserRealmInfo();
session.setAttribute(UserAdminUIConstants.USER_STORE_INFO, userRealmInfo);
+ } else {
+ domainNames = userRealmInfo.getDomainNames();
+ }
if (localClaims == null) {
ClaimMetadataAdminClient client = new ClaimMetadataAdminClient(cookie, serverURL, configContext);
localClaims = client.getLocalClaims();
session.setAttribute("localClaims", localClaims);
}
- }
-
- if (userRealmInfo != null) {
- domainNames = userRealmInfo.getDomainNames();
- }
} catch (Exception e) {
String BUNDLE = "org.wso2.carbon.identity.claim.metadata.mgt.ui.i18n.Resources";
