Description
When creating a <netui:select> tag with repeater=true and the selectOption value as container.item.value, an NPE is returned when the page is invoked.
See attached repro case.
Code snippet:
<netui:select dataSource="pageFlow.resultsOne" optionsDataSource="${pageFlow.opts}" repeater="true">
<tr align="center"><td align="right" width="25%">
<td align="left"><netui:selectOption value="${container.item.value}" />
</td></tr>
</netui:select>
Where opts is of type HashMap:
private HashMap opts;
private String[] resultsOne;
NPE Exception Recieved:
java.lang.NullPointerException
at org.apache.beehive.netui.tags.html.Select.doRepeaterAfterBody(Select.java:964)
at org.apache.beehive.netui.tags.html.Select.doRepeaterAfterBody(Select.java:961)
at org.apache.beehive.netui.tags.html.Select.doStartTag(Select.java:729)
at jsp_servlet.bugs._j256.index._jspService(_index.java:165)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:184)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:118)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:255)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:366)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:281)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:279)
at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:204)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.apache.beehive.netui.tools.testrecorder.server.TestRecorderFilter.doFilter(TestRecorderFilter.java:144)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:2990)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1898)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1821)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1293)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:167)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:139)