jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r463323 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/PropertyImpl.java
Date Thu, 12 Oct 2006 17:04:59 GMT
Author: angela
Date: Thu Oct 12 10:04:57 2006
New Revision: 463323

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

- be prepared for Property.setValue(null)

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=463323&r1=463322&r2=463323
==============================================================================
--- 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
Thu Oct 12 10:04:57 2006
@@ -116,7 +116,8 @@
      */
     public void setValue(Value value) throws ValueFormatException, VersionException, LockException,
RepositoryException {
         checkIsWritable(false);
-        int reqType = getRequiredType(value.getType());
+        int valueType = (value != null) ? value.getType() : PropertyType.UNDEFINED;
+        int reqType = getRequiredType(valueType);
         setValue(value, reqType);
     }
 



Mime
View raw message