Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-695

NPE when using datagrid netui-data:pad tag inside a repetaer tag

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v1m1
    • v1m1
    • NetUI
    • None
    • Windows XP, JDK 1.5.x, Tomcat 5.0.25

    Description

      bash05102005

      I'm getting an NPE when using <netui-data:pad> tag inside a repeater tag.
      Here is a repro:

      <% pageContext.setAttribute("itemArray", new String[]

      {"zero", "one", "two", "three", "four"}

      ); %>
      <netui-data:repeater dataSource="pageScope.itemArray">
      <netui-data:pad maxRepeat="2"/>
      <netui-data:repeaterItem>
      <netui:label value="${container.item}" />
      </netui-data:repeaterItem>
      </netui-data:repeater>

      Expected Result:
      zero one

      Actual Error output:
      zero one two three four
      Page Errors
      Error Number Tag Type Error
      1 Pad Message An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
      2 Pad Message An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
      3 Pad Message An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
      4 Pad Message An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
      5 Pad Message An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
      6 Pad Message An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
      7 Pad Message An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException
      8 Pad Message An exception occurred when rendering the endTag of the tag "Pad" because: java.lang.NullPointerException

      I'm not seeing any stack traces printed to the Tomcat console. I get a similar result when trying to use the 'minRepeat' attribute as well.

      I will attach the actual JSP here shortly.

      Attachments

        1. index2.jsp
          0.9 kB
          Nathan Jantz

        Activity

          People

            njantz Nathan Jantz
            njantz Nathan Jantz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: