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

StAXResolver throws NullPointerException #24

Closed
nzhiv opened this issue May 15, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@nzhiv
Copy link

commented May 15, 2019

Hi,
StAXResolver throws NullPointerException for <!DOCTYPE ONIXmessage SYSTEM "ONIX_BookProduct_3.0_short.dtd"> although Resolver used by SAXParser works fine for the same document.
I checked the code and it looks that the local variable absSystem in resolveEntity(String publicId, String systemId, String baseURI, String namespace) method should be initialized to systemId.

   public Object resolveEntity(String publicId, String systemId, String baseURI, String namespace) throws XMLStreamException {
    // We can do better than this, but for now...just get an absolute URI
    String absSystem = null;
@ndw

This comment has been minimized.

Copy link
Owner

commented May 21, 2019

That seems reasonable to me.

ndw added a commit that referenced this issue May 21, 2019

@ndw ndw closed this May 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.