]
Konstantin Pupkov updated RF-10267:
-----------------------------------
Priority: Minor (was: Major)
Accordion creating from Java NPE if activeItem is not set
---------------------------------------------------------
Key: RF-10267
URL:
https://issues.jboss.org/browse/RF-10267
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: base functionality
Affects Versions: 4.0.0.Milestone5
Environment: Ununtu 10.10, Java 6
Reporter: Konstantin Pupkov
Priority: Minor
in Java...
FacesContext ctx=FacesContext.getCurrentInstance();
pendingBar = (HtmlAccordion) ctx
.getApplication()
.createComponent(ctx, HtmlAccordion.COMPONENT_TYPE,
"org.richfaces.AccordionRenderer");
pendingBar.setId("pend");
......
error on page:
...
ava.lang.NullPointerException
org.richfaces.component.AbstractAccordion.getActiveItem(AbstractAccordion.java:50)
org.richfaces.renderkit.html.TogglePanelRenderer.doEncodeBegin(TogglePanelRenderer.java:116)
org.richfaces.renderkit.html.AccordionRenderer.doEncodeBegin(AccordionRenderer.java:55)
org.richfaces.renderkit.RendererBase.encodeBegin(RendererBase.java:116)
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:824)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: