xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r160946 - xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java
Date Mon, 11 Apr 2005 20:41:12 GMT
Author: radup
Date: Mon Apr 11 13:41:10 2005
New Revision: 160946

URL: http://svn.apache.org/viewcvs?view=rev&rev=160946
Log:
Gotta make sure that nillable is only checked when validateOnSet is true

Modified:
    xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java

Modified: xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java?view=diff&r1=160945&r2=160946
==============================================================================
--- xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java (original)
+++ xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java Mon Apr
11 13:41:10 2005
@@ -1240,7 +1240,8 @@
             {
                 if (get_store().find_nil())
                 {
-                    if ((_flags & FLAG_NILLABLE) == 0)
+                    if ((_flags & FLAG_NILLABLE) == 0 &&
+                        (_flags & FLAG_VALIDATE_ON_SET) != 0)
                         throw new XmlValueOutOfRangeException(); // nil not allowed
 
                     // let the implementation know that we're nil now



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org


Mime
View raw message