RM: Fix build

* double check existance of node ref prior to work



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.0@56793 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2013-10-18 04:18:51 +00:00
parent 49644a1f47
commit 39cd44864a

View File

@@ -96,6 +96,9 @@ public class PublishUpdatesJobExecuter extends RecordsManagementJobExecuter
// Deal with each updated disposition action in turn // Deal with each updated disposition action in turn
for (NodeRef nodeRef : nodeRefs) for (NodeRef nodeRef : nodeRefs)
{
// double check that the node in question still exists
if (nodeService.exists(nodeRef) == true)
{ {
// Mark the update node as publishing in progress // Mark the update node as publishing in progress
markPublishInProgress(nodeRef); markPublishInProgress(nodeRef);
@@ -129,6 +132,7 @@ public class PublishUpdatesJobExecuter extends RecordsManagementJobExecuter
unmarkPublishInProgress(nodeRef); unmarkPublishInProgress(nodeRef);
} }
} }
}
return null; return null;
}; };
}, AuthenticationUtil.getSystemUserName()); }, AuthenticationUtil.getSystemUserName());