mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-3266 - added an extra check when invoking onAddAspect
This commit is contained in:
@@ -224,7 +224,8 @@ public class FilePlanComponentAspect extends BaseBehaviourBean
|
|||||||
@Override
|
@Override
|
||||||
public Void doWork()
|
public Void doWork()
|
||||||
{
|
{
|
||||||
if (nodeService.exists(nodeRef))
|
// Check if the node exists and the aspect hasn't been removed in the same transaction (see RM-3266)
|
||||||
|
if (nodeService.exists(nodeRef) && nodeService.hasAspect(nodeRef, aspectTypeQName))
|
||||||
{
|
{
|
||||||
// Look up the root and set on the aspect if found
|
// Look up the root and set on the aspect if found
|
||||||
NodeRef root = filePlanService.getFilePlan(nodeRef);
|
NodeRef root = filePlanService.getFilePlan(nodeRef);
|
||||||
|
Reference in New Issue
Block a user