Potential NPE in FacesContext.release
-------------------------------------
Key: PORTLETBRIDGE-183
URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-183
Project: MyFaces Portlet Bridge
Issue Type: Bug
Affects Versions: 2.0.0, 1.0.0, 3.0.0-alpha
Reporter: Michael Freedman
Assignee: Michael Freedman
The Bridge's FacesContext.release dereferences the return from
request.getAttribute(BridgeImpl.PREEXISTING_ATTRIBUTE_NAMES) without checking
to see if its null. Now it would only be null if the bridge didn't
create/release FC but there seems to be at least one situation in which this
has occurred and in any case the code should be written correctly to avoid the
potential problem/NPE.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira