Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE when Title composite occurs inside Set composite #4

Open
GoogleCodeExporter opened this issue Jul 28, 2015 · 0 comments
Open

NPE when Title composite occurs inside Set composite #4

GoogleCodeExporter opened this issue Jul 28, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.  NPE when Title composite occurs inside Set composite

        <Set>
            <Title>
                <TitleType/>
                <TitleText>Hobbit Set</TitleText>
            </Title>
        </Set>
2.
3.

What is the expected output? What do you see instead?
NPE

Caused by: java.lang.NullPointerException
    at com.ebrary.onix.composite.Sets.consume(Sets.java:79)
    at org.jonix.JonixTag.consumeChildren(JonixTag.java:119)
    at org.jonix.JonixTag.consumeChildren(JonixTag.java:122)
    at org.jonix.JonixTag.process(JonixTag.java:39)
    at org.jonix.JonixParser$OnChunkListenerImpl.onChunk(JonixParser.java:161)
    at org.jonix.JonixChunksHandler.endElement(JonixChunksHandler.java:106)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endNamespaceScope(XMLDTDValidator.java:2054)
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2005)
    at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:879)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2973)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648)
    at org.jonix.JonixParser.parse(JonixParser.java:197)
    at org.jonix.JonixScanner.doScan(JonixScanner.java:154)
    at org.jonix.JonixScanner.scan(JonixScanner.java:94)

What version of the product are you using? On what operating system?
JOnix 2.0 Reference tags/ Unix

Please provide any additional information below.


Regards,
RAjat

Original issue reported on code.google.com by rajat.mo...@gmail.com on 10 Mar 2015 at 9:21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant