From 33bcab147b6c0d1a8ee414df391728e82393a57b Mon Sep 17 00:00:00 2001 From: Tuna Aksoy Date: Mon, 9 Jan 2017 14:46:33 +0000 Subject: [PATCH] Fixed review comment. --- .../org_alfresco_module_rm/record/RecordServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/record/RecordServiceImpl.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/record/RecordServiceImpl.java index cbd5cf6b85..dcfaa7c53b 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/record/RecordServiceImpl.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/record/RecordServiceImpl.java @@ -853,7 +853,7 @@ public class RecordServiceImpl extends BaseBehaviourBean ParameterCheck.mandatory("isLinked", isLinked); recordCreationSanityCheckOnNode(nodeRef); - recordCreationSanityCheckOnFilePlan(filePlan); + final NodeRef checkedFilePlan = recordCreationSanityCheckOnFilePlan(filePlan); // do the work of creating the record as the system user AuthenticationUtil.runAsSystem(new RunAsWork() @@ -868,7 +868,7 @@ public class RecordServiceImpl extends BaseBehaviourBean try { // get the new record container for the file plan - NodeRef newRecordContainer = filePlanService.getUnfiledContainer(filePlan); + NodeRef newRecordContainer = filePlanService.getUnfiledContainer(checkedFilePlan); if (newRecordContainer == null) { throw new AlfrescoRuntimeException("Unable to create record, because new record container could not be found.");