ACS-5506 Fix string to node ref cast exception

This commit is contained in:
MichalKinas
2024-02-13 11:33:20 +01:00
parent de6b062f3e
commit 8d978d6527
2 changed files with 14 additions and 3 deletions

View File

@@ -147,7 +147,7 @@ public class GroupsImpl implements Groups
}
Map<QName, Serializable> props = new HashMap<>();
if (StringUtils.isNotEmpty(group.getDescription()))
if (group.getDescription() != null)
{
props.put(ContentModel.PROP_DESCRIPTION, group.getDescription());
}
@@ -170,7 +170,7 @@ public class GroupsImpl implements Groups
try
{
if (StringUtils.isNotEmpty(group.getDescription()))
if (group.getDescription() != null)
{
authorityService.setAuthorityDisplayNameAndDescription(groupId, group.getDisplayName(), group.getDescription());
}