Uploaded image for project: 'Commons JXPath'
  1. Commons JXPath
  2. JXPATH-143

JXPathContext.iterate does not work with null value in LazyDynaBean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3
    • None
    • 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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              multimike Mikael Nordenberg
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: