[
https://issues.apache.org/jira/browse/PORTLETBRIDGE-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Freedman resolved PORTLETBRIDGE-183.
--------------------------------------------
Resolution: Fixed
Fix Version/s: 3.0.0-alpha
2.0.1
1.0.1
Updated all versions with the simple fix in release() that first makes sure the
attr Map returned from looking up on the request attrs is non-null.
> 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: 1.0.0, 2.0.0, 3.0.0-alpha
> Reporter: Michael Freedman
> Assignee: Michael Freedman
> Fix For: 1.0.1, 2.0.1, 3.0.0-alpha
>
>
> 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