[
https://issues.apache.org/jira/browse/MYFACES-3188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leonardo Uribe resolved MYFACES-3188.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.1.2
2.0.8
Assignee: Leonardo Uribe
Instead log this case, the best in this case is throw a ViewNotFoundException.
In theory, from the spec point of view we can't do anything more. Suggestions
are welcome.
> NPE in org.apache.myfaces.lifecycle.RenderResponseExecutor.execute
> ------------------------------------------------------------------
>
> Key: MYFACES-3188
> URL: https://issues.apache.org/jira/browse/MYFACES-3188
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 2.0.8-SNAPSHOT, 2.1.2-SNAPSHOT
> Reporter: Martin Kočí
> Assignee: Leonardo Uribe
> Priority: Minor
> Fix For: 2.0.8, 2.1.2
>
>
> Caused by: java.lang.NullPointerException
> at
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:60)
> at
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:239)
> NPE ocurres in situation:
> 1) ViewExpiredException
> 2) Navigate to viewExpired.xhtml in ExpcetionHandler
> 3) but viewExpired.xhtml does not exists as resource
> (In previous situation, navigationHandler should stay on current view
> (mojarra does it) - I'll create separate issue for that.)
> improve RenderResponseExecutor: provide useful log instead of cryptic NPE.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira