Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-11

Calling getUnionMemberTypes() on SchemaType for non-union types results in NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Cannot Reproduce
    • Version 1, Version 2
    • Version 1.0.3
    • Compiler
    • None
    • Operating System: Windows XP
      Platform: PC
    • 26155

    Description

      Please see attached file for related test code and schemas.
      Running against schema simple_types_001.xsd results in:

      NUMBER OF GLOBAL TYPES: 1
      Exception in thread "main" java.lang.NullPointerException
      at org.apache.xmlbeans.impl.schema.SchemaTypeImpl.getUnionMemberTypes
      (Sc
      hemaTypeImpl.java:1051)
      at test.UnionNPE.test(UnionNPE.java:44)
      at test.UnionNPE.<init>(UnionNPE.java:24)
      at test.UnionNPE.main(UnionNPE.java:19)

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--simple_types_001.xsd
          0.4 kB
          Panagiotis Reveliotis
        2. ASF.LICENSE.NOT.GRANTED--UnionNPE.java
          1 kB
          Panagiotis Reveliotis

        Activity

          People

            Unassigned Unassigned
            prevelio@sbcglobal.net Panagiotis Reveliotis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: