XalanJ2
  1. XalanJ2
  2. XALANJ-2514

FuncSystemProperty.execute() can fail with NPE

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.7.1
    • Fix Version/s: None
    • Component/s: XPath
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • Labels:
      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')");

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Sebb
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development