jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r464425 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/PropertyState.java
Date Mon, 16 Oct 2006 09:18:37 GMT
Author: angela
Date: Mon Oct 16 02:18:36 2006
New Revision: 464425

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

- check for null entries in values array

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

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/PropertyState.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/PropertyState.java?view=diff&rev=464425&r1=464424&r2=464425
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/PropertyState.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/PropertyState.java
Mon Oct 16 02:18:36 2006
@@ -384,7 +384,7 @@
             throw new ConstraintViolationException("RequiredType constraint is not satisfied");
         }
         for (int i = 0; i < values.length; i++) {
-            if (propertyType != values[i].getType()) {
+            if (values[i] != null && propertyType != values[i].getType()) {
                 throw new ConstraintViolationException("Inconsistent value types: Required
type = " + PropertyType.nameFromValue(propertyType) + "; Found value with type = " + PropertyType.nameFromValue(values[i].getType()));
             }
         }



Mime
View raw message