[ 
https://issues.apache.org/jira/browse/MYFACES-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027737#comment-13027737
 ] 

Jakob Korherr commented on MYFACES-3101:
----------------------------------------

Hi,

Because there was no release since the patch was committed, you will have to 
use 2.0.6-SNAPSHOT. You can get it from our snapshots repo (see [1]) our by 
checking out current20 (see [2]) using svn checkout and building it yourself 
using maven!

[1] 
https://repository.apache.org/content/groups/snapshots/org/apache/myfaces/core/
[2] https://svn.apache.org/repos/asf/myfaces/current20/

> NavigationHandlerImpl throws NullpointerException if view is expired
> --------------------------------------------------------------------
>
>                 Key: MYFACES-3101
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3101
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.4
>            Reporter: Martin Stockhammer
>             Fix For: 2.0.6-SNAPSHOT
>
>         Attachments: MYFACES-3101-v2.patch, MYFACES-3101.patch
>
>
> I tried to use the NavigationHandler inside a Faces exception handler to deal 
> with ViewExpiredException as mentioned here: 
> http://www.nfjsone.com/blog/ed_burns/2009/09/dealing_gracefully_with_viewexpiredexception_in_jsf2.
> The example does not work with myfaces, because 
> org.apache.myfaces.application.NavigationHandlerImpl throws a 
> NullpointerException while handleNavigation() is called.
> The exception occurs in line 160: String viewId = 
> facesContext.getViewRoot().getViewId();
> I think the cause is that the viewroot is not set anymore when the 
> ViewExpiredException is thrown. 
> The official API for NavigationHandler.handleNavigation tells, that the 
> NullpointerException is thrown only if the given facescontext is null.
>     NullPointerException - if context is null

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to