You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2004/04/09 03:16:44 UTC
DO NOT REPLY [Bug 28304] New: -
NullPointerException from empty choice in restriction
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: xerces-j-dev@xml.apache.org
ReportedBy: Eric.J.Schwarzenbach.C88@alumni.upenn.edu
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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org