[ http://issues.apache.org/jira/browse/MYFACES-887?page=all ] sean schofield closed MYFACES-887: ----------------------------------
Fix Version: Nightly Resolution: Fixed > "javax.servlet.ServletException: text name must not be null" when subtitle = > null in DAY mode > --------------------------------------------------------------------------------------------- > > Key: MYFACES-887 > URL: http://issues.apache.org/jira/browse/MYFACES-887 > Project: MyFaces > Type: Bug > Components: Sandbox > Versions: 1.1.1 > Reporter: Paul Spencer > Fix For: Nightly > Attachments: myfaces-887.patch > > When the schedule is in DAY mode, an entry with getSubtitle() == null causes > the following error returned > javax.faces.FacesException: text name must not be null > > org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421) > > org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) > > org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352) > javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) > > org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122) > A portion of the stack trace from the log file is below, but I believe the > resolution is to only write the subtitle if it is not null in > ScheduleDetailedDayRenderer.java around line 505. > From localhost.log > SEVERE: Servlet.service() for servlet jsp threw exception > java.lang.NullPointerException: text name must not be null > at > org.apache.myfaces.renderkit.html.HtmlResponseWriterImpl.writeText(HtmlResponseWriterImpl.java:421) > at > org.apache.myfaces.custom.schedule.renderer.ScheduleDetailedDayRenderer.writeEntries(ScheduleDetailedDayRenderer.java:505) > at > org.apache.myfaces.custom.schedule.renderer.ScheduleDetailedDayRenderer.encodeChildren(ScheduleDetailedDayRenderer.java:117) > at > org.apache.myfaces.custom.schedule.renderer.ScheduleDelegatingRenderer.encodeChildren(ScheduleDelegatingRenderer.java:75) > at > javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:319) > at > org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:444) > at > org.apache.myfaces.renderkit.RendererUtils.renderChildren(RendererUtils.java:427) > at > org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:448) > at > org.apache.myfaces.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:203) > at > org.apache.myfaces.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:85) > at > javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331) > at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:349) > at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:253) > at > org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:55) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira