Actions
Bug #2491
closed![Author: Radu Coravu](https://www.gravatar.com/avatar/765896f3e900dbcce565dbf8425cc7e7?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
NPE in class Whitespace
Start date:
2015-11-04
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Platforms:
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)
Please register to edit this issue
Actions