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

Leonardo Uribe commented on MYFACES-3933:
-----------------------------------------

The related line that throws the NullPointerException is this:

uiViewRoot = tsm.restoreTreeStructure(((Object[])stateArray[0])[0]);

The only way that old line is executed, is when you have partial state saving 
disabled, but if that so, if the state is correctly restored, it will never be 
null, because the state is saved fully for the whole view.  I tested MyFaces 
2.2.x with client and server side state saving and with/without pss and it 
works fine, so I must assume the report is invalid, or there is no enough 
evidence that a real bug exists (at least in normal conditions). Probably a 
third party library is causing the problem. I'll close this issue as invalid. 

> NullPointerException StateManagerImpl.restoreView(StateManagerImpl.java:147)
> ----------------------------------------------------------------------------
>
>                 Key: MYFACES-3933
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3933
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.2.5
>         Environment: TomEE 1.7.1 Plus, Oracle JDK 1.7.0_72 x64, Windows 
> Server 2012
>            Reporter: Donatas Ciuksys
>            Priority: Minor
>
> {code}
> java.lang.NullPointerException: null
>       at 
> org.apache.myfaces.application.StateManagerImpl.restoreView(StateManagerImpl.java:147)
>  ~[myfaces-impl-2.2.5.jar:2.2.5]
>       at 
> org.apache.myfaces.shared.view.ViewDeclarationLanguageBase.restoreView(ViewDeclarationLanguageBase.java:104)
>  ~[myfaces-impl-2.2.5.jar:2.2.5]
>       at 
> org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:336)
>  ~[myfaces-impl-2.2.5.jar:2.2.5]
>       at 
> javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:82)
>  ~[myfaces-api-2.2.5.jar:2.2.5]
>       at 
> javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:82)
>  ~[myfaces-api-2.2.5.jar:2.2.5]
> {code}
> Better error handling needed - what actually is wrong with the request?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to