[richfaces-issues] [JBoss JIRA] Created: (RF-10961) tabPanel causes NullPointerException if activeItem is not found
Stephan Meisinger (JIRA)
jira-events at lists.jboss.org
Thu Apr 28 05:04:18 EDT 2011
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-panels-layout-themes
Affects Versions: 4.0.0.Final
Environment: RichFaces 4.0.0-Final
Apache Tomcat 6.0.32
Reporter: Stephan Meisinger
Fix For: 4.0.1.Milestone1
<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 is 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