[richfaces-issues] [JBoss JIRA] Updated: (RF-10961) tabPanel causes NullPointerException if activeItem is not found
Jay Balunas (JIRA)
jira-events at lists.jboss.org
Thu Aug 11 11:36:02 EDT 2011
[ https://issues.jboss.org/browse/RF-10961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jay Balunas updated RF-10961:
-----------------------------
Affects Version/s: 4.0.0.Final
Priority: Trivial (was: Major)
Forum Reference: http://community.jboss.org/message/602791#602791 (was: http://community.jboss.org/message/602791#602791)
> tabPanel causes NullPointerException if activeItem is not found
> ---------------------------------------------------------------
>
> Key: RF-10961
> URL: https://issues.jboss.org/browse/RF-10961
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-output
> Affects Versions: 4.0.0.Final
> Environment: RichFaces 4.0.0-Final
> Apache Tomcat 6.0.32
> Reporter: Stephan Meisinger
> Priority: Trivial
> Fix For: 4.1.0.Tracking
>
>
> <rich:tabPanel activeItem="#{foo.tab}>...</rich:tabPanel>
> class foo { public String getTab(){return null;} }
> causes a NPE in org.richfaces.component.AbstractTabPanel (Line 64). This Bug was introduced with RF-10624. If activeItem is declared in a page, but Id not found getItemByIndex will return null, but return value is not checked.
> If bean return null, String is transformed by apache EL resolver from null to empty string (""). So res is also not null.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list