mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
REPO-2519, MNT-17113 Remove Error log if content node for thumbnail was deleted.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@137695 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -920,8 +920,20 @@ public class ThumbnailServiceImpl implements ThumbnailService,
|
||||
NodeRef thumbnailNodeRef = childAssoc.getChildRef();
|
||||
NodeRef sourceNodeRef = childAssoc.getParentRef();
|
||||
|
||||
// check if thumbnail node exists
|
||||
if (thumbnailNodeRef == null || !nodeService.exists(thumbnailNodeRef))
|
||||
{
|
||||
logger.debug("Thumbnail node " + thumbnailNodeRef + " does not exist. It will be skipped");
|
||||
continue;
|
||||
}
|
||||
// check if source node exists
|
||||
if (sourceNodeRef == null || !nodeService.exists(sourceNodeRef))
|
||||
{
|
||||
logger.debug("Parent node " + sourceNodeRef + " does not exist. It will be skipped");
|
||||
continue;
|
||||
}
|
||||
|
||||
String thumbnailName = (String) nodeService.getProperty(thumbnailNodeRef, ContentModel.PROP_NAME);
|
||||
//behaviourFilter.disableBehaviour(sourceNodeRef, ContentModel.ASPECT_VERSIONABLE);
|
||||
// Update the parent node with the thumbnail update...
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
|
Reference in New Issue
Block a user