[MAGNOLIA-2947] cms:editBar throws a NullPointerException Created: 19/Nov/09  Updated: 23/Nov/09  Resolved: 19/Nov/09

Status: Closed
Project: Magnolia
Component/s: taglibs
Affects Version/s: None
Fix Version/s: 4.2

Type: Bug Priority: Major
Reporter: Tom Wespi Assignee: Philipp Bärfuss
Resolution: Cannot Reproduce 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
Date of First Response:

 Description   

<cms:editBar deleteLabel="" moveLabel="" editLabel="${editLabel}" dialog="dialogName" contentNodeName="contentNodeName" />

java.lang.NullPointerException
at info.magnolia.cms.taglibs.EditBar.doEndTag(EditBar.java:196)
at org.apache.jsp.templates.siteDesigner.global.layoutBar_jsp._jspx_meth_cms_005feditBar_005f0(layoutBar_jsp.java:252)
at org.apache.jsp.templates.siteDesigner.global.layoutBar_jsp._jspx_meth_c_005fif_005f1(layoutBar_jsp.java:169)
at org.apache.jsp.templates.siteDesigner.global.layoutBar_jsp._jspx_meth_c_005fif_005f0(layoutBar_jsp.java:139)
at org.apache.jsp.templates.siteDesigner.global.layoutBar_jsp._jspx_meth_cms_005fadminOnly_005f0(layoutBar_jsp.java:112)
at org.apache.jsp.templates.siteDesigner.global.layoutBar_jsp._jspService(layoutBar_jsp.java:69)

related to MAGNOLIA-2811



 Comments   
Comment by Philipp Bärfuss [ 19/Nov/09 ]

I see that this tag logs a warning if the current content is null, but the current content is set by the info.magnolia.cms.filters.AggregatorFilter at line 185 and should never be set to null again.

Generated at Mon Feb 12 03:41:41 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.