jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r464422 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java
Date Mon, 16 Oct 2006 09:13:58 GMT
Author: angela
Date: Mon Oct 16 02:13:57 2006
New Revision: 464422

URL: http://svn.apache.org/viewvc?view=rev&rev=464422
Log:
work in progress

setValue(InputStream): missing handling for null values

Modified:
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java?view=diff&rev=464422&r1=464421&r2=464422
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java
Mon Oct 16 02:13:57 2006
@@ -206,7 +206,11 @@
     public void setValue(InputStream value) throws ValueFormatException, VersionException,
LockException, RepositoryException {
         checkIsWritable(false);
         int reqType = getRequiredType(PropertyType.BINARY);
-        setValue(session.getValueFactory().createValue(value), reqType);
+        if (value == null) {
+            setInternalValues(null, reqType);
+        } else {
+            setValue(session.getValueFactory().createValue(value), reqType);
+        }
     }
 
     /**



Mime
View raw message