You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mario Ivankovits (JIRA)" <de...@myfaces.apache.org> on 2007/10/26 11:35:50 UTC

[jira] Resolved: (MYFACES-1752) "old" tags like htmlTag throws NPE

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

Mario Ivankovits resolved MYFACES-1752.
---------------------------------------

    Resolution: Duplicate

MYFACES-1746

Wasn't aware that this has been uncovered already ...

> "old" tags like htmlTag throws NPE
> ----------------------------------
>
>                 Key: MYFACES-1752
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1752
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions:  1.2.0
>            Reporter: Mario Ivankovits
>            Assignee: Mario Ivankovits
>             Fix For: 1.2.1-SNAPSHOT
>
>
> Tags like the t:htmlTag fail with this NPE
> Caused by: java.lang.NullPointerException
>         at org.apache.myfaces.custom.htmlTag.HtmlTagRenderer.encodeBegin(HtmlTagRenderer.java:50)
>         at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:528)
>         ... 83 more
> when running with MyFaces 1.2
> After applying this patch
> Index: api/src/main/java/javax/faces/webapp/UIComponentTag.java
> ===================================================================
> --- api/src/main/java/javax/faces/webapp/UIComponentTag.java    (Revision 588035)
> +++ api/src/main/java/javax/faces/webapp/UIComponentTag.java    (Arbeitskopie)
> @@ -143,6 +143,7 @@
>          UIComponent component = context.getApplication().createComponent(componentType);
>          component.setId(id);
> +        setProperties(component);
>          return component;
> things started working for me.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.