Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.7.1
-
None
-
Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
-
None
Description
FuncSystemProperty.execute() can fail with NPE when processing the line:
if (namespace.startsWith("http://www.w3.org/XSL/Transform")
because "namespace" can be null.
To reproduce:
org.w3c.dom.Node node = new org.apache.xerces.impl.xs.opti.DefaultDocument();
org.apache.xpath.XPathAPI.eval(node, "system-property('xsl:version')");