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

Volodymyr Siedlecki edited comment on MYFACES-4507 at 12/16/22 9:34 PM:
------------------------------------------------------------------------

https://github.com/apache/myfaces/pull/431
https://github.com/apache/myfaces/pull/430
https://github.com/apache/myfaces/pull/429


was (Author: volosied):
https://github.com/apache/myfaces/pull/431

> TCK: testInjectFlowMap#testInjectFlowMap: NullPointerException in Flow
> ----------------------------------------------------------------------
>
>                 Key: MYFACES-4507
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4507
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.3.10, 2.3-next-M7, 4.0.0-RC2
>            Reporter: Volodymyr Siedlecki
>            Assignee: Volodymyr Siedlecki
>            Priority: Major
>             Fix For: 2.3.11, 3.0.3, 2.3-next-M8, 4.0.0-RC3
>
>
> {code:java}
> Caused by: java.lang.NullPointerException     at 
> org.apache.myfaces.flow.cdi.FlowScopeContext.get(FlowScopeContext.java:249)  
> at 
> org.jboss.weld.contexts.PassivatingContextWrapper$AbstractPassivatingContextWrapper.get(PassivatingContextWrapper.java:84)
>    at 
> org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:100)
>     at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50) 
>       at 
> org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:102)
>       at 
> org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105)
>      at 
> org.jboss.weld.generated.proxies.util.Map$1196533720$Proxy$_$$_WeldClientProxy.put(Unknown
>  Source)   at 
> ee.jakarta.tck.faces.test.javaee8.cdi.InjectFlowMapBean.initFoo(InjectFlowMapBean.java:35)
>  {code}
> We pass in false for {_}createIfNotExist in getContextualStorage{_}, which 
> returns a null object hence an NPE.
> [https://github.com/apache/myfaces/blob/89c747e85615e3f33265e664c8361789f38ea7db/impl/src/main/java/org/apache/myfaces/flow/cdi/FlowScopeContext.java#L247]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to