DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20892>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20892

NullPointerException in XSDHandler when redefining components

           Summary: NullPointerException in XSDHandler when redefining
                    components
           Product: Xerces2-J
           Version: 2.4.0
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XML Schema Structures
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When validating a schema document with a <redefine> element with a <simpleType>
child and whose grandchildren consist only of a <annotation></annotation>
element, a NullPointerException is thrown.

schema.xsd:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
           xmlns:bug="http://www.example.org/Bug";
           targetNamespace="http://www.example.org/Bug";>

<xs:redefine schemaLocation="redefine.xsd">
        <xs:simpleType name="numberType">
                <xs:annotation>
                        <xs:documentation>
                                doc
                        </xs:documentation>
                </xs:annotation>
        </xs:simpleType>
</xs:redefine>

</xs:schema>

C:\eclipse\workspace\xerces-j>java dom.ASBuilder -f -a schema.xsd
java.lang.NullPointerException
        at
org.apache.xerces.impl.xs.traversers.XSDHandler.renameRedefiningComponents(Unknown
Source)
        at
org.apache.xerces.impl.xs.traversers.XSDHandler.buildGlobalNameRegistries(Unknown
Source)
        at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown
Source)
        at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
        at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
        at
org.apache.xerces.parsers.XMLGrammarCachingConfiguration.parseXMLSchema(Unknown
Source)
        at org.apache.xerces.parsers.DOMASBuilderImpl.parseASInputSource(Unknown
Source)
        at org.apache.xerces.parsers.DOMASBuilderImpl.parseASURI(Unknown Source)
        at dom.ASBuilder.main(ASBuilder.java:215)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to