You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Gabrielle Crawford (JIRA)" <de...@myfaces.apache.org> on 2011/08/30 20:37:40 UTC

[jira] [Created] (TRINIDAD-2134) NullPointerException in StateManagerImpl._calculateTokenStateSaving

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