Bug #2491
closedNPE in class Whitespace
100%
Description
According to the Javadoc on the SAX method "org.xml.sax.ContentHandler.processingInstruction(String, String)" the processing instruction "data" part can also be NULL. So if the Saxon receiving content handler is called with NULL data value, it should not throw a NPE.
[filter] java.lang.NullPointerException
[filter] at net.sf.saxon.value.Whitespace.removeLeadingWhitespace(Whitespace.java:137)
[filter] at net.sf.saxon.event.ReceivingContentHandler.processingInstruction(ReceivingContentHandler.java:507)
[filter] at org.dita.dost.module.DebugAndFilterModule$DTDForwardHandler.startDTD(DebugAndFilterModule.java:756)
[filter] at org.apache.xerces.parsers.AbstractSAXParser.doctypeDecl(Unknown Source)
Updated by Michael Kay about 9 years ago
- Found in version changed from 9.6.0.7 to 9.6
Congratulations, it's not often someone finds a bug that has been in the product unnoticed for 15 years. Will fix.
Updated by Michael Kay about 9 years ago
- Category set to JAXP Java API
- Status changed from New to Resolved
- Assignee set to Michael Kay
Fix committed (with regression testing only) on the 9.6 and 9.7 branches.
Updated by Radu Coravu about 9 years ago
Thanks Michael.
The DITA Open Toolkit DebugAndFilterModule calls methods directly on the Saxon content handler implementation and at some point it tries to set a PI with a target but null data.
Updated by O'Neil Delpratt almost 9 years ago
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in version set to 9.6.0.8
Bug fix applied in the Saxon 9.6.0.8 maintenance release
Updated by O'Neil Delpratt almost 9 years ago
- Applies to branch 9.6 added
- Fix Committed on Branch 9.6 added
- Fixed in Maintenance Release 9.6.0.8 added
Please register to edit this issue