[
https://issues.jboss.org/browse/RF-10961?page=com.atlassian.jira.plugin.s...
]
Stephan Meisinger updated RF-10961:
-----------------------------------
Description:
<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.
was:
<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.
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 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