[
https://issues.apache.org/jira/browse/MYFACES-4611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17744328#comment-17744328
]
Volodymyr Siedlecki edited comment on MYFACES-4611 at 7/18/23 6:43 PM:
-----------------------------------------------------------------------
Wouldn't the change the logic if the cache EL param changed as shown in the
link Paul provided?
_if (myfacesConfig.getELExpressionCacheMode() !=
ELExpressionCacheMode.alwaysRecompile)_
If it was previously noCache, then the above evaluated to true and initialize
is set to false. No ViewPoolProcessor is created.
it's is set to alwaysRecompile, then a ViewPoolProcessor is created?
was (Author: volosied):
Wouldn't the change the logic if the param changed as shown in the link Paul
provided?
_if (myfacesConfig.getELExpressionCacheMode() !=
ELExpressionCacheMode.alwaysRecompile)_
If it was previously noCache, then the above evaluated to true and initialize
is set to false. No ViewPoolProcessor is created.
it's is set to alwaysRecompile, then a ViewPoolProcessor is created?
> 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
> Fix For: 2.3.11, 3.0.3, 2.2.16, 4.0.2, 2.3-next-M9
>
>
> 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)