ALF-1926 - org.alfresco.jcr.item.PropertyImpl.remove() throws ValueFormatException on multi-valued properties

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18949 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2010-03-02 14:23:52 +00:00
parent 98b2c31c61
commit 9ad5ee91d3

View File

@@ -108,7 +108,14 @@ public class PropertyImpl extends ItemImpl implements Property
*/
public void remove() throws VersionException, LockException, ConstraintViolationException, RepositoryException
{
setValue((Value)null);
if (getDefinition().isMultiple())
{
setValue((Value[])null);
}
else
{
setValue((Value)null);
}
}
/* (non-Javadoc)