[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-1551) The resolution to JBSEAM-1294 has brought out another NPE exception condition.

Gavin King (JIRA) jira-events at lists.jboss.org
Mon Jun 25 20:29:16 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBSEAM-1551?page=all ]

Gavin King closed JBSEAM-1551.
------------------------------

    Fix Version/s: 1.3.0.BETA1
       Resolution: Done
         Assignee: Gavin King

I applied this fix. A bit dirty but....

> The resolution to JBSEAM-1294 has brought out another NPE exception condition.
> ------------------------------------------------------------------------------
>
>                 Key: JBSEAM-1551
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1551
>             Project: JBoss Seam
>          Issue Type: Bug
>    Affects Versions: 1.3.0.ALPHA
>            Reporter: Chris Rudd
>         Assigned To: Gavin King
>             Fix For: 1.3.0.BETA1
>
>
> The the stock JSF converters require that he component parameter of getAsString not be null. The following is a code snipit from Param.getValueFromModel :
>    converter.getAsString( facesContext, facesContext.getViewRoot(), value );
> The code is using the view root as the component, which is null as ExceptionFilter.createFacesContext does not setup an initial UIViewRoot.
> I made the following change and it seems to have resolved the problem :
> ExceptionFilter.java
>   private MockFacesContext createFacesContext(HttpServletRequest request, HttpServletResponse response)
>     {
>        MockFacesContext ctx = new MockFacesContext( new MockExternalContext(getServletContext(), request, response), new MockApplication() );
>        ctx.setViewRoot( new UIViewRoot() );
>        
>        return ctx;
>     } 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list