You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Sebb (JIRA)" <xa...@xml.apache.org> on 2010/01/21 17:13:54 UTC

[jira] Created: (XALANJ-2514) FuncSystemProperty.execute() can fail with NPE

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-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org