[
https://issues.jboss.org/browse/RF-10267?page=com.atlassian.jira.plugin.s...
]
Christophe Noel commented on RF-10267:
--------------------------------------
Get the same issue. Really surprising!
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
Fix For: 5-Future
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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira