Details
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.