REPO-1986: Upload Failing due to Metadata Extraction Issue (MNT-17436) - trivial

- fix when debug logging (if rawValue is null - nothing to do)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135078 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2017-02-10 11:55:49 +00:00
parent 483d79a548
commit d94bb9bd5b

View File

@@ -197,11 +197,16 @@ public class ContentMetadataExtracter extends ActionExecuterAbstractBase
*/
protected void addTags(NodeRef actionedUponNodeRef, PropertyDefinition propertyDef, Serializable rawValue)
{
if (rawValue == null)
{
return;
}
List<String> tags = new ArrayList<String>();
if (logger.isDebugEnabled())
{
logger.debug("converting " + rawValue.toString() + " of type " + rawValue.getClass().getCanonicalName() + " to tags");
logger.debug("converting " + rawValue + " of type " + rawValue.getClass().getCanonicalName() + " to tags");
}
if (rawValue instanceof Collection<?>)
@@ -274,7 +279,7 @@ public class ContentMetadataExtracter extends ActionExecuterAbstractBase
if (logger.isDebugEnabled())
{
logger.debug("adding tags '" + tags + "' to " + actionedUponNodeRef.toString());
logger.debug("adding tags '" + tags + "' to " + actionedUponNodeRef);
}
try