[CST-5669] Minor changes

This commit is contained in:
Luca Giamminonni
2022-05-09 13:41:03 +02:00
parent 92e8a2fb25
commit a19d31da67
7 changed files with 11 additions and 14 deletions

View File

@@ -576,10 +576,10 @@ public class EPersonServiceImpl extends DSpaceObjectServiceImpl<EPerson> impleme
@Override
public EPerson findByProfileItem(Context context, Item profile) throws SQLException {
List<MetadataValue> crisOwners = itemService.getMetadata(profile, "dspace", "object", "owner", ANY);
if (CollectionUtils.isEmpty(crisOwners)) {
List<MetadataValue> owners = itemService.getMetadata(profile, "dspace", "object", "owner", ANY);
if (CollectionUtils.isEmpty(owners)) {
return null;
}
return find(context, UUIDUtils.fromString(crisOwners.get(0).getAuthority()));
return find(context, UUIDUtils.fromString(owners.get(0).getAuthority()));
}
}