Changeset 28573

Show
Ignore:
Timestamp:
01/08/08 16:27:29 (1 year ago)
Author:
dmihalache
Message:

also fix for particular case when the a list is re-set

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.nuxeo.ecm.core/trunk/nuxeo-core-jcr-connector/src/main/java/org/nuxeo/ecm/core/repository/jcr/DocumentPartWriter.java

    r28195 r28573  
    3434import javax.jcr.ValueFactory; 
    3535 
     36import org.apache.commons.logging.Log; 
     37import org.apache.commons.logging.LogFactory; 
    3638import org.nuxeo.ecm.core.api.model.DocumentPart; 
    3739import org.nuxeo.ecm.core.api.model.Property; 
     
    5557 */ 
    5658public class DocumentPartWriter { 
     59     
     60    private static final Log log = LogFactory.getLog(DocumentPartWriter.class); 
    5761 
    5862    // Utility class. 
     
    272276 
    273277    public static void removePropertyNode(Node parent, String name) throws RepositoryException { 
     278        if (name == null) { 
     279            log.error("removePropertyNode was given a null name"); 
     280            return; 
     281        } 
    274282        try { 
    275283            parent.getNode(name).remove();