MyFaces Trinidad
  1. MyFaces Trinidad
  2. TRINIDAD-1378

NPE in FrameBorderLayoutRenderer if an attribute is null

    Details

      Description

      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>

        Activity

        Andrew Robinson created issue -
        Hide
        Andrew Robinson added a comment -

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

        Added to 1.0 trunk, 1.2 trunk and 1.2.10.1 branch

        Show
        Andrew Robinson added a comment - Do not call .toString() on a possibly null value Added to 1.0 trunk, 1.2 trunk and 1.2.10.1 branch
        Andrew Robinson made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s  1.2.11-core [ 12313510 ]
        Resolution Fixed [ 1 ]
        Fix Version/s  1.0.11-core [ 12313509 ]
        Matthias Weßendorf made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Andrew Robinson
            Reporter:
            Andrew Robinson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development