Merge branch 'master' into feature/RM-4921_ExceptionsDoneOnTransactionCommit

This commit is contained in:
Ramona Popa
2017-05-09 14:23:05 +03:00
5 changed files with 7 additions and 7 deletions

View File

@@ -1798,7 +1798,7 @@ public class RecordServiceImpl extends BaseBehaviourBean
)
public void onContentUpdate(NodeRef nodeRef, boolean newContent)
{
if (!nodeService.hasAspect(nodeRef, ContentModel.ASPECT_HIDDEN) && !nodeService.hasAspect(nodeRef, ContentModel.ASPECT_LOCKABLE))
if (nodeService.exists(nodeRef) && !nodeService.hasAspect(nodeRef, ContentModel.ASPECT_HIDDEN) && !nodeService.hasAspect(nodeRef, ContentModel.ASPECT_LOCKABLE))
{
appendIdentifierToName(nodeService, nodeRef);
}