You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Andrew Robinson (JIRA)" <de...@myfaces.apache.org> on 2009/01/23 19:53:59 UTC

[jira] Created: (TRINIDAD-1378) NPE in FrameBorderLayoutRenderer if an attribute is null

NPE in FrameBorderLayoutRenderer if an attribute is null
--------------------------------------------------------

                 Key: TRINIDAD-1378
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1378
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Components
    Affects Versions: 1.2.10-core
            Reporter: Andrew Robinson
            Assignee: Andrew Robinson


If the trh:frame tags within the facets of a trh:frameBorderLayout don't specify the height / width attribute, the renderer throws a NullPointerException 

java.lang.NullPointerException at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FrameBorderLayoutRenderer._getPropertyValue(FrameBorderLayoutRenderer.java:287) 

Example page content:
      <trh:frameBorderLayout borderWidth="2">
        <f:facet name="center">
          <trh:frame source="center.jspx"/>
        </f:facet>
        <f:facet name="top">
          <trh:frame source="top.jspx"/>
        </f:facet>
        <f:facet name="bottom">
          <trh:frame source="bottom.jspx"/>
        </f:facet>
        <f:facet name="left">
          <trh:frame source="left.jspx"/>
        </f:facet>
        <f:facet name="right">
          <trh:frame source="right.jspx"/>
        </f:facet>
      </trh:frameBorderLayout> 

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


[jira] Resolved: (TRINIDAD-1378) NPE in FrameBorderLayoutRenderer if an attribute is null

Posted by "Andrew Robinson (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-1378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Robinson resolved TRINIDAD-1378.
---------------------------------------

       Resolution: Fixed
    Fix Version/s:  1.2.11-core
                    1.0.11-core

Do not call .toString() on a possibly null value

Added to 1.0 trunk, 1.2 trunk and 1.2.10.1 branch

> NPE in FrameBorderLayoutRenderer if an attribute is null
> --------------------------------------------------------
>
>                 Key: TRINIDAD-1378
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1378
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.2.10-core
>            Reporter: Andrew Robinson
>            Assignee: Andrew Robinson
>             Fix For:  1.0.11-core,  1.2.11-core
>
>
> If the trh:frame tags within the facets of a trh:frameBorderLayout don't specify the height / width attribute, the renderer throws a NullPointerException 
> java.lang.NullPointerException at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FrameBorderLayoutRenderer._getPropertyValue(FrameBorderLayoutRenderer.java:287) 
> Example page content:
>       <trh:frameBorderLayout borderWidth="2">
>         <f:facet name="center">
>           <trh:frame source="center.jspx"/>
>         </f:facet>
>         <f:facet name="top">
>           <trh:frame source="top.jspx"/>
>         </f:facet>
>         <f:facet name="bottom">
>           <trh:frame source="bottom.jspx"/>
>         </f:facet>
>         <f:facet name="left">
>           <trh:frame source="left.jspx"/>
>         </f:facet>
>         <f:facet name="right">
>           <trh:frame source="right.jspx"/>
>         </f:facet>
>       </trh:frameBorderLayout> 

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