[
https://issues.apache.org/jira/browse/MYFACES-4611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17739070#comment-17739070
]
Paul Nicolucci commented on MYFACES-4611:
-----------------------------------------
View pooling is disabled by default up until 2.3-next and 4.0 as the value of
org.apache.myfaces.CACHE_EL_EXPRESSIONS is noCache previous to 2.3-next and 4.0
where the default is alwaysRecompile. This is checked here:
https://github.com/apache/myfaces/blob/main/impl/src/main/java/org/apache/myfaces/view/facelets/ViewPoolProcessor.java#L160
> NullPointerException in ViewPoolProcessor
> -----------------------------------------
>
> Key: MYFACES-4611
> URL: https://issues.apache.org/jira/browse/MYFACES-4611
> Project: MyFaces Core
> Issue Type: Bug
> Components: General
> Affects Versions: 2.2.15, 2.3.10, 3.0.2, 2.3-next-M8, 4.0.1
> Reporter: Paul Nicolucci
> Assignee: Paul Nicolucci
> Priority: Trivial
>
> If a ViewExpiredException is handled by a Custom ExceptionHandler which
> performs some implicit navigation the following NPE can occur:
>
> java.lang.NullPointerException
> at
> org.apache.myfaces.view.facelets.ViewPoolProcessor.isViewPoolEnabledForThisView(ViewPoolProcessor.java:236)
> at
> org.apache.myfaces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:324)
> at
> org.apache.myfaces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:117)
> at
> ....ViewExpiredExceptionExceptionHandler.handle(ViewExpiredExceptionExceptionHandler.java:45)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)