diff --git a/modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/endpoints/GroupResourceManager.java b/modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/endpoints/GroupResourceManager.java index 85048093e..97f5d9eda 100644 --- a/modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/endpoints/GroupResourceManager.java +++ b/modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/endpoints/GroupResourceManager.java @@ -947,9 +947,8 @@ private List> 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); }