RFR: 8169772: [JAXP] XALAN: Transformation of DOM with null valued text node causes NPE

Langer, Christoph christoph.langer at sap.com
Wed Nov 16 14:22:39 UTC 2016


Hi,

please review another XALAN fix.

The Serializer should be able to handle text nodes with null input. There has already been some discussion here: http://mail.openjdk.java.net/pipermail/core-libs-dev/2016-November/044567.html

Bug: https://bugs.openjdk.java.net/browse/JDK-8169772
Webrev: http://cr.openjdk.java.net/~clanger/webrevs/8169772.0/

The actual fix is in ToUnknownStream.java, method "public void characters(String chars) throws SAXException". I don't know if one should even directly return after chars being null or of size() 0. The rest of this change is cleanups and a test case.

Thanks for reviewing.

Best regards
Christoph



More information about the core-libs-dev mailing list