[ 
https://issues.apache.org/jira/browse/PORTLETBRIDGE-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Freedman resolved PORTLETBRIDGE-102.
--------------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0
                   1.0.0

Two fixes.  The Bridge now checks to see if the defaultViewId passed with a 
given mode is null or empty and if so skips it.  The GFP also has had this 
check added at the point its reading its initParameters.

> Null/Empty viewId in InitParameter causes NullPointer Exception in bridge
> -------------------------------------------------------------------------
>
>                 Key: PORTLETBRIDGE-102
>                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-102
>             Project: MyFaces Portlet Bridge
>          Issue Type: Bug
>          Components: Impl
>    Affects Versions: 1.0.0-beta, 2.0.0-alpha
>            Reporter: Michael Freedman
>            Assignee: Michael Freedman
>             Fix For: 1.0.0, 2.0.0
>
>
> The Bridge doesn't check if a default viewId passed by the portlet is not 
> null or empty -- yielding a nullPointerException.  Since the 
> GenericFacesPortlet acquires this default viewId by reading a portlet.xml 
> initParameter its possible for a mode to be defined with an empty or null 
> entry.  Neither the GFP nor the Bridge expects this/recognizes/excludes this 
> -- instead the GFP passes it along to the Bridge which happily derefernces 
> the viewId (null) and results in a NPE.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to