ALF-8683: RenditionServiceException in log upon checking in item (Edit Offline -> Upload New Version, Checkout ... -> Checkin from Google Docs)

* Rendering engine no longer trys to create a rendition if the source node does not exist.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31106 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2011-10-11 01:31:02 +00:00
parent 949c873c7a
commit a866be929e

View File

@@ -370,6 +370,8 @@ public abstract class AbstractRenderingEngine extends ActionExecuterAbstractBase
} }
protected void executeImpl(final RenditionDefinition renditionDef, final NodeRef sourceNode) protected void executeImpl(final RenditionDefinition renditionDef, final NodeRef sourceNode)
{
if (nodeService.exists(sourceNode) == true)
{ {
if (logger.isDebugEnabled()) if (logger.isDebugEnabled())
{ {
@@ -451,6 +453,14 @@ public abstract class AbstractRenderingEngine extends ActionExecuterAbstractBase
} }
}, runAsName); }, runAsName);
} }
else
{
if (logger.isDebugEnabled() == true)
{
logger.debug("Rendition has not been created, because the node no longer exitst. (sourceNode=" + sourceNode + ")");
}
}
}
/** /**
* Is this a standalone rendition, or is it a sub-component of * Is this a standalone rendition, or is it a sub-component of