[ https://issues.apache.org/jira/browse/XERCESJ-1683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16931279#comment-16931279 ]
Mukul Gandhi commented on XERCESJ-1683: --------------------------------------- I think that, without a sample XSD document that results in the mentioned issue, the bug description should be considered to contain insufficient information to attempt a fix. Please provide the XSD document, that causes the mentioned issue, else this bug report is liable to be resolved for insufficient information. > 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 > Priority: Major > > 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 (v8.3.2#803003) --------------------------------------------------------------------- To unsubscribe, e-mail: j-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: j-dev-h...@xerces.apache.org