Description
I create a simple static tree with two items at the top level and receive a NullPointerException. The repro is attached.
Test Case:
1. In a brand new Controller, put the following:
TreeElement tree1;
public TreeElement getTree1()
{ return this.tree1; }public void setTree1(TreeElement tree1)
{ this.tree1= tree1; }2. In the index.jsp, add this:
<netui:tree dataSource="pageFlow.tree1" selectionAction="postback" tagId="tree1" >
<netui:treeItem>Hello.</netui:treeLabel></netui:treeItem>
<netui:treeItem>Goodbye.</netui:treeItem>
</netui:tree>
3. Start the server
4. Hit this index.jsp in the browser
Behavior: Exception
java.lang.NullPointerException
at org.apache.beehive.netui.tags.AbstractSimpleTag.reportErrors(AbstractSimpleTag.java:185)
at org.apache.beehive.netui.tags.tree.TreeItem.doTag(TreeItem.java:337)
at jsp_servlet.htmlvalidation._html._tree._bugs._npe1.index$JspFragmentHelper.invoke0(_index.java:251)
at jsp_servlet.htmlvalidation._html._tree._bugs._npe1.index$JspFragmentHelper.invoke(_index.java:278)
at org.apache.beehive.netui.tags.AbstractSimpleTag.getBufferBody(AbstractSimpleTag.java:50)
at org.apache.beehive.netui.tags.tree.Tree.doTag(Tree.java:576)
at jsp_servlet.htmlvalidation._html._tree._bugs._npe1.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:254)
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:283)
at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:208)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:500)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:243)
at org.apache.beehive.netui.pageflow.internal.DefaultForwardRedirectHandler.forward(DefaultForwardRedirectHandler.java:130)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1722)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processForwardConfig(PageFlowRequestProcessor.java:1596)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:590)
at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:840)
at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:607)
at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:135)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
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:254)