[ http://jira.magnolia.info/browse/MAGNOLIA-1896?page=all ]

Jan Haderka resolved MAGNOLIA-1896.
-----------------------------------

    Fix Version/s: 3.5 RC2
       Resolution: Fixed

Fixed so when contentNodeCollection doesn't exist empty collection is returned 
to be consistent with previous versions.

> cms:contentNodeIterator throws NPE when there are no paragraphs to iterate 
> over
> -------------------------------------------------------------------------------
>
>                 Key: MAGNOLIA-1896
>                 URL: http://jira.magnolia.info/browse/MAGNOLIA-1896
>             Project: Magnolia
>          Issue Type: Bug
>          Components: taglibs
>    Affects Versions: 3.5 RC1
>         Environment: N/A
>            Reporter: Tom Jensen
>         Assigned To: Jan Haderka
>             Fix For: 3.5 RC2
>
>         Attachments: ContentNodeIterator.patch
>
>   Original Estimate: 5 minutes
>  Remaining Estimate: 5 minutes
>
> as of rev. 13159, when a template has a contentNodeIterator setup like this:
> <cms:contentNodeIterator contentNodeCollectionName="mainContent">
>     <cms:editBar/>
>     <cms:includeTemplate></cms:includeTemplate>
> </cms:contentNodeIterator>
> It throws an NPE:
> java.lang.NullPointerException
>       at 
> info.magnolia.cms.taglibs.ContentNodeIterator.getCollection(ContentNodeIterator.java:198)
>       at 
> info.magnolia.cms.taglibs.ContentNodeIterator.doStartTag(ContentNodeIterator.java:262)
> See attached patch for suggested fix, tested against a simple set of 
> paragraphs but not against nested paragraphs.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to