mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.2 to HEAD
8371: Merged V2.1 to V2.2 8307: Next round of fixes for session management. 8309: Fixed AR-1891: Long MLText strings fail in Oracle 8313: Fix for case where existing MLText entry is null 8319: Follow-up fix for NPE where StringValue is null when persisting 8331: Fix for AR-1696: Long text in an aspect property causes an exception git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8496 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -44,7 +44,6 @@ import org.alfresco.i18n.I18NUtil;
|
||||
import org.alfresco.repo.attributes.Attribute;
|
||||
import org.alfresco.repo.attributes.MapAttribute;
|
||||
import org.alfresco.repo.attributes.MapAttributeValue;
|
||||
import org.alfresco.repo.attributes.StringAttribute;
|
||||
import org.alfresco.repo.attributes.StringAttributeValue;
|
||||
import org.alfresco.service.cmr.repository.AssociationRef;
|
||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||
@@ -322,15 +321,9 @@ public class DefaultTypeConverter
|
||||
"MapAttribute string key cannot be converted to a locales:" + localeStr, e);
|
||||
}
|
||||
Attribute valueAttribute = entry.getValue();
|
||||
if (valueAttribute instanceof StringAttribute)
|
||||
{
|
||||
ret.put(locale, valueAttribute.getStringValue());
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new TypeConversionException(
|
||||
"MapAttribute must contain Locale-String mappings to convert to MLText");
|
||||
}
|
||||
// Use the attribute's built-in conversion
|
||||
String valueStr = valueAttribute == null ? null : valueAttribute.getStringValue();
|
||||
ret.put(locale, valueStr);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user