[MAGNOLIA-1896] cms:contentNodeIterator throws NPE when there are no paragraphs to iterate over Created: 27/Nov/07 Updated: 23/Jan/13 Resolved: 28/Nov/07 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | taglibs |
| Affects Version/s: | 3.5 RC1 |
| Fix Version/s: | 3.5 RC2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Tom Jensen | Assignee: | Jan Haderka |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | 5m | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | 5m | ||
| Environment: |
N/A |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Date of First Response: | |||||||||
| Description |
|
as of rev. 13159, when a template has a contentNodeIterator setup like this: <cms:contentNodeIterator contentNodeCollectionName="mainContent"> It throws an NPE: java.lang.NullPointerException See attached patch for suggested fix, tested against a simple set of paragraphs but not against nested paragraphs. |
| Comments |
| Comment by Jan Haderka [ 28/Nov/07 ] |
|
Fixed so when contentNodeCollection doesn't exist empty collection is returned to be consistent with previous versions. |