You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Benson (JIRA)" <ji...@apache.org> on 2011/06/07 23:01:00 UTC
[jira] [Closed] (JXPATH-143) JXPathContext.iterate does not work
with null value in LazyDynaBean
[ https://issues.apache.org/jira/browse/JXPATH-143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Benson closed JXPATH-143.
------------------------------
Resolution: Fixed
> JXPathContext.iterate does not work with null value in LazyDynaBean
> -------------------------------------------------------------------
>
> Key: JXPATH-143
> URL: https://issues.apache.org/jira/browse/JXPATH-143
> Project: Commons JXPath
> Issue Type: Bug
> Affects Versions: 1.3
> Reporter: Mikael Nordenberg
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira