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

        Matt Benson created issue -
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 39563 12343079
        Henri Yandell made changes -
        Component/s JXPath [ 12311120 ]
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Project Commons [ 12310458 ] Commons JXPath [ 12310480 ]
        Affects Version/s 1.2 Final [ 12311661 ]
        Key COM-2927 JXPATH-38
        Henri Yandell made changes -
        Affects Version/s 1.2 Final [ 12311699 ]
        Matt Benson made changes -
        Attachment jxpath-38.patch.txt [ 12348365 ]
        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 .
        Niall Pemberton made changes -
        Fix Version/s 1.3 [ 12312253 ]
        Hide
        Matt Benson added a comment -

        fixed in SVN HEAD.

        Show
        Matt Benson added a comment - fixed in SVN HEAD.
        Matt Benson made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Matt Benson made changes -
        Summary [jxpath] ClassFunctions throws NPE searching for a function in null ns ClassFunctions throws NPE searching for a function in null ns
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        243d 16h 17m 1 Matt Benson 10/Jan/07 18:50

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development