jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r409537 - /jackrabbit/branches/1.0/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/DavResourceImpl.java
Date Fri, 26 May 2006 01:47:35 GMT
Author: jukka
Date: Thu May 25 18:47:34 2006
New Revision: 409537

URL: http://svn.apache.org/viewvc?rev=409537&view=rev
Log:
 1.0: Merged revision 390356: JCR-382

Modified:
    jackrabbit/branches/1.0/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/DavResourceImpl.java

Modified: jackrabbit/branches/1.0/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/DavResourceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.0/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/DavResourceImpl.java?rev=409537&r1=409536&r2=409537&view=diff
==============================================================================
--- jackrabbit/branches/1.0/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/DavResourceImpl.java
(original)
+++ jackrabbit/branches/1.0/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/DavResourceImpl.java
Thu May 25 18:47:34 2006
@@ -929,10 +929,13 @@
      * @throws RepositoryException
      */
     private void setJcrProperty(DavProperty property) throws RepositoryException {
-        // retrieve value
-        String value = property.getValue().toString();
-        // set value; since multivalued-properties are not listed in the set
-        // of available properties, this extra validation-check is omitted.
+        // Retrieve the property value. Note, that a 'null' value is replaced
+        // by empty string, since setting a jcr property value to 'null'
+        // would be equivalent to its removal.
+        String value = "";
+        if (property.getValue() != null) {
+            value = property.getValue().toString();
+        }
         node.setProperty(getJcrName(property.getName()), value);
     }
 



Mime
View raw message