Project

Profile

Help

Bug #2491

closed

NPE in class Whitespace

Added by Radu Coravu about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
JAXP Java API
Sprint/Milestone:
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

Also available in: Atom PDF