[MAGNOLIA-1911] ContentNodeIterator: loopStatus.last throws a NPE if end is not set Created: 02/Dec/07 Updated: 23/Jan/13 Resolved: 02/Dec/07 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | taglibs |
| Affects Version/s: | 3.5 RC2 |
| Fix Version/s: | 3.5 RC3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Fabrizio Giustina | Assignee: | Fabrizio Giustina |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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
|
| Description |
|
in ContentNodeIterator LoopTagStatus the mwthod isLast always uses the value from the tag attribute "end", which is optional: public boolean isLast() { return count + begin == end.intValue(); }This leads to a NPE every time isLast() is called if the "end" tag attribute is not set. |
| Comments |
| Comment by Fabrizio Giustina [ 02/Dec/07 ] |
|
fixed, unit test added |