[
https://issues.apache.org/jira/browse/MYFACES-4184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Nicolucci resolved MYFACES-4184.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.3.0
> NullPointerException in markRenderedResources
> ---------------------------------------------
>
> Key: MYFACES-4184
> URL: https://issues.apache.org/jira/browse/MYFACES-4184
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-372
> Affects Versions: 2.3.0-beta
> Reporter: Paul Nicolucci
> Assignee: Paul Nicolucci
> Fix For: 2.3.0
>
> Attachments: MYFACES-4184.patch
>
>
> The following exception can occur:
> at
> org.apache.myfaces.view.facelets.util.FaceletsViewDeclarationLanguageUtils.markRenderedResources(FaceletsViewDeclarationLanguageUtils.java:116)
> at
> org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.restoreView(FaceletViewDeclarationLanguage.java:2157)
> at
> org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:338)
> at
> org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:168)
> at
> org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:195)
> at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:142)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:204)
> This happens when the view is null, which can happen for a variety of
> reasons, for example if you drive a request to a page, let the session
> timeout and then click on a ajaxified button we would get the NPE rather than
> a ViewExpiredException. The change is trivial I'll upload a patch.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)