[richfaces-issues] [JBoss JIRA] (RF-10267) Accordion creating from Java NPE if activeItem is not set

Daniel Dostal (JIRA) jira-events at lists.jboss.org
Tue Jan 17 00:57:18 EST 2012


    [ https://issues.jboss.org/browse/RF-10267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659740#comment-12659740 ] 

Daniel Dostal commented on RF-10267:
------------------------------------

The API clearly states that this field is not required.  The description is also empty.  I have just installed 4.1.0.Final and this bug is still current.  I'm not even sure what this item should be.  I'll set them to blank, but this is quite sad.
                
> 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: 4.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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list