[MNT-25580] skip rendition nodes from getting included in child associations when revert operation is performed in Share (#3983)

This commit is contained in:
Debjit Chattopadhyay
2026-04-03 13:09:10 +05:30
committed by GitHub
parent 9af62075bb
commit 96e871395e
@@ -30,6 +30,7 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import org.alfresco.model.ContentModel;
@@ -132,7 +133,7 @@ public class Node2ServiceImpl extends NodeServiceImpl implements NodeService, Ve
NodeRef childRef = childAssocRef.getChildRef();
NodeRef referencedNode = (NodeRef) this.dbNodeService.getProperty(childRef, ContentModel.PROP_REFERENCE);
if (this.dbNodeService.exists(referencedNode))
if (Objects.nonNull(referencedNode) && this.dbNodeService.exists(referencedNode))
{
// Build a child assoc ref to add to the returned list
ChildAssociationRef newChildAssocRef = new ChildAssociationRef(