myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Udo Schnurpfeil (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Resolved] (TOBAGO-1727) NullPointerException in ComponentUtils
Date Fri, 24 Mar 2017 16:17:42 GMT

     [ https://issues.apache.org/jira/browse/TOBAGO-1727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Udo Schnurpfeil resolved TOBAGO-1727.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.1.0
                   3.0.4

> NullPointerException in ComponentUtils
> --------------------------------------
>
>                 Key: TOBAGO-1727
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-1727
>             Project: MyFaces Tobago
>          Issue Type: Bug
>            Reporter: Matthias Wronka
>            Assignee: Udo Schnurpfeil
>            Priority: Trivial
>             Fix For: 3.0.4, 3.1.0
>
>
> When a valueBinding cannot be evaluated due to a NullPointer in the expression of a tc:date-value-attribute,
a NPE is thrown that makes it hard to figure out whats the problem.
> {code}
> java.lang.NullPointerException 
>         org.apache.myfaces.tobago.util.ComponentUtils.getConverter(ComponentUtils.java:822)

>         org.apache.myfaces.tobago.internal.component.AbstractUIDate.getPattern(AbstractUIDate.java:38)

>         org.apache.myfaces.tobago.internal.renderkit.renderer.DateRenderer.writeAdditionalAttributes(DateRenderer.java:55)

>         org.apache.myfaces.tobago.internal.renderkit.renderer.InRenderer.encodeBeginField(InRenderer.java:136)

>         org.apache.myfaces.tobago.internal.renderkit.renderer.DateRenderer.encodeBeginField(DateRenderer.java:70)

>         org.apache.myfaces.tobago.internal.renderkit.renderer.LabelLayoutRendererBase.encodeBegin(LabelLayoutRendererBase.java:65)
>         javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:587) 
>         org.apache.myfaces.tobago.internal.util.RenderUtils.encode(RenderUtils.java:95)

>         org.apache.myfaces.tobago.internal.util.RenderUtils.encode(RenderUtils.java:79)

> {code}
> It would be better, if the EL-Problem would be logged.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message