mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user