Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2514

FuncSystemProperty.execute() can fail with NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.1
    • None
    • XPath
    • 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')");

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: