DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28304>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28304 NullPointerException from empty choice in restriction Summary: NullPointerException from empty choice in restriction Product: Xerces2-J Version: 2.6.2 Platform: PC OS/Version: Windows XP Status: NEW Severity: Normal Priority: Other Component: XML Schema Structures AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Attempting to validate (or at least preparse) the following schema: <?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="extendableType" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:np="extendableType" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:complexType name="extendableType"> <xs:choice> <xs:any minOccurs="0" maxOccurs="unbounded"/> </xs:choice> </xs:complexType> <xs:complexType name="extendedType"> <xs:complexContent> <xs:restriction base="np:extendableType"> <xs:choice/> </xs:restriction> </xs:complexContent> </xs:complexType> </xs:schema> results in: java.lang.NullPointerException at org.apache.xerces.impl.xs.XSModelGroupImpl.minEffectiveTotalRangeChoice(Unknown Source) at org.apache.xerces.impl.xs.XSModelGroupImpl.minEffectiveTotalRange(Unknown Source) at org.apache.xerces.impl.xs.XSParticleDecl.minEffectiveTotalRange(Unknown Source) at org.apache.xerces.impl.xs.XSConstraints.particleValidRestriction(Unknown Source) at org.apache.xerces.impl.xs.XSConstraints.particleValidRestriction(Unknown Source) at org.apache.xerces.impl.xs.XSConstraints.fullSchemaChecking(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) at org.apache.xerces.parsers.XMLGrammarPreparser.preparseGrammar(Unknown Source) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
