Project

Profile

Help

Bug #2491

closed

NPE in class Whitespace

Added by Radu Coravu over 8 years ago. Updated over 8 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)
Actions #1

Updated by Michael Kay over 8 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.

Actions #2

Updated by Michael Kay over 8 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.

Actions #3

Updated by Radu Coravu over 8 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.

Actions #4

Updated by O'Neil Delpratt over 8 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

Actions #5

Updated by O'Neil Delpratt over 8 years ago

  • Applies to branch 9.6 added
  • Fix Committed on Branch 9.6 added
  • Fixed in Maintenance Release 9.6.0.8 added
Actions #6

Updated by O'Neil Delpratt over 8 years ago

  • Sprint/Milestone set to 9.6.0.8

Please register to edit this issue

Also available in: Atom PDF