Commons JXPath
  1. Commons JXPath
  2. JXPATH-143

JXPathContext.iterate does not work with null value in LazyDynaBean

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Labels:
      None

      Description

      The following code fails with a NoSuchElementException:

      LazyDynaBean bean = new LazyDynaBean();
      bean.set("test", null);
      JXPathContext context = JXPathContext.newContext(bean);
      context.iterate("test").next();

      Replacing the value in the bean for anything but null works as expected.

        Issue Links

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development