Radu Coravu created XERCESJ-1683:
------------------------------------

             Summary: NullPointerException in SymbolHash.get
                 Key: XERCESJ-1683
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1683
             Project: Xerces2-J
          Issue Type: Bug
          Components: SAX
            Reporter: Radu Coravu


We use as XSModelImpl to iterate XML Schema components.
One of our clients, on a schema that they did not provide obtained this NPE:

{code}[ AWT-EventQueue-0 ]  -  java.lang.ArithmeticException: / by zero
java.lang.ArithmeticException: / by zero
    at org.apache.xerces.util.SymbolHash.get(Unknown Source)
    at org.apache.xerces.impl.xs.XSModelImpl.getSubstitutionGroup(Unknown 
Source) {code}

The NPE seams feasible if a SymbolHash with zero length is constructed and then 
queried for a value. Maybe this could be taken into account on your side.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to