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

public XPathFunction resolveFunction(QName qname, int arity) handles className incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.1
    • None
    • XPath-function
    • None

    Description

      The resolveFunction does not handle the className variable correctly resulting in possible NPEs

      For instance className is unitialized in the else, but used none the less.

      String className = null;
      String methodName = null;
      if (uri.startsWith("http://exslt.org"))

      { className = getEXSLTClassName(uri); methodName = qname.getLocalPart(); }

      else if (!uri.equals(ExtensionNamespaceContext.JAVA_EXT_URI))

      { int lastSlash = className.lastIndexOf("/"); if (-1 != lastSlash) className = className.substring(lastSlash + 1); }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dbrosius David Brosius
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: