RM: Fix build

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@56060 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2013-09-27 03:26:46 +00:00
parent 07fa31bf79
commit 5e8ffa4634

View File

@@ -464,12 +464,10 @@ public class RecordServiceImpl implements RecordService,
try try
{ {
NodeRef nodeRef = childAssocRef.getChildRef(); NodeRef nodeRef = childAssocRef.getChildRef();
ContentData contentData = (ContentData)nodeService.getProperty(nodeRef, ContentModel.PROP_CONTENT);
if (nodeService.exists(nodeRef) == true && if (nodeService.exists(nodeRef) == true &&
nodeService.hasAspect(nodeRef, ContentModel.ASPECT_TEMPORARY) == false && nodeService.hasAspect(nodeRef, ContentModel.ASPECT_TEMPORARY) == false &&
nodeService.getType(nodeRef).equals(TYPE_RECORD_FOLDER) == false && nodeService.getType(nodeRef).equals(TYPE_RECORD_FOLDER) == false &&
nodeService.getType(nodeRef).equals(TYPE_RECORD_CATEGORY) == false && nodeService.getType(nodeRef).equals(TYPE_RECORD_CATEGORY) == false)
contentData != null && contentData.getSize() != 0)
{ {
if (nodeService.hasAspect(nodeRef, ContentModel.ASPECT_NO_CONTENT) == true) if (nodeService.hasAspect(nodeRef, ContentModel.ASPECT_NO_CONTENT) == true)
{ {