Commons JXPath
  1. Commons JXPath
  2. JXPATH-38

ClassFunctions throws NPE searching for a function in null ns

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2 Final
    • Fix Version/s: 1.3
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

      Description

      First thing in getFunction(...):

      if (!namespace.equals(this.namespace))

      { return null; }

      In contrast PackageFunctions has null checks. I think I can work around this by
      always using a namespace, but I can't think of any reason this behavior should
      persist into (theoretical) future versions of jxpath.

        Activity

        Hide
        Matt Benson added a comment -

        fixed in SVN HEAD.

        Show
        Matt Benson added a comment - fixed in SVN HEAD.
        Hide
        Matt Benson added a comment -

        patch added. Recommend inclusion for 1.3 .

        Show
        Matt Benson added a comment - patch added. Recommend inclusion for 1.3 .

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development