NullPointerException in StateManagerImpl._calculateTokenStateSaving
-------------------------------------------------------------------

                 Key: TRINIDAD-2134
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2134
             Project: MyFaces Trinidad
          Issue Type: Bug
    Affects Versions: 2.0.0
            Reporter: Gabrielle Crawford
            Assignee: Gabrielle Crawford


In the fix for this issue
https://issues.apache.org/jira/browse/TRINIDAD-2017

This line of code was added to StateManagerImpl._calculateTokenStateSaving
           UIViewRoot viewRoot = 
FacesContext.getCurrentInstance().getViewRoot();

However in certain situations we are calling 
StateManagerImpl.isValidViewStateToken() (which calls 
StateManagerImpl._calculateTokenStateSaving) from a servlet filter, which mean 
the FacesContext is null. Note that both these methods take the 
externalContext, and not the FacesContext, as params.

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

        

Reply via email to