myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabrielle Crawford (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Created] (TRINIDAD-2134) NullPointerException in StateManagerImpl._calculateTokenStateSaving
Date Tue, 30 Aug 2011 18:37:40 GMT
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

        

Mime
View raw message