fix invalid usage of == operator

This commit is contained in:
Sascha Szott
2024-08-02 14:12:53 +02:00
committed by GitHub
parent 8bc235b3c9
commit fa0fb14a18

View File

@@ -1799,7 +1799,7 @@ prevent the generation of resource policy entry values with null dspace_object a
//Retrieve the applicable relationship //Retrieve the applicable relationship
Relationship rs = relationshipService.find(context, Relationship rs = relationshipService.find(context,
((RelationshipMetadataValue) rr).getRelationshipId()); ((RelationshipMetadataValue) rr).getRelationshipId());
if (rs.getLeftItem() == dso) { if (rs.getLeftItem().equals(dso)) {
rs.setLeftPlace(place); rs.setLeftPlace(place);
} else { } else {
rs.setRightPlace(place); rs.setRightPlace(place);