Project

Profile

Help

Bug #4064

closed

NullPointerException in ConfigurationReader

Added by Radu Coravu over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2018-12-11
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.9
Fix Committed on Branch:
9.9
Fixed in Maintenance Release:
Platforms:

Description

Using Saxon 9.8 and passing to the ConfigurationReader an XML file which is not a Saxon configuration file, leads to a NullPointerException:

java.lang.NullPointerException
    at net.sf.saxon.trans.ConfigurationReader.endDocument(ConfigurationReader.java:191)
    at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidatorXerces.endDocument(XMLDTDValidatorXerces.java:1014)
    at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:526)

This is because the "config" field is null when the "endDocument" callback is issued.

Please register to edit this issue

Also available in: Atom PDF