FuncSystemProperty.execute() can fail with NPE
----------------------------------------------

                 Key: XALANJ-2514
                 URL: https://issues.apache.org/jira/browse/XALANJ-2514
             Project: XalanJ2
          Issue Type: Bug
      Security Level: No security risk; visible to anyone (Ordinary problems in 
Xalan projects.  Anybody can view the issue.)
          Components: XPath
    Affects Versions: 2.7.1
            Reporter: Sebb


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')");


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscr...@xml.apache.org
For additional commands, e-mail: xalan-dev-h...@xml.apache.org

Reply via email to