You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Volodymyr Siedlecki (Jira)" <de...@myfaces.apache.org> on 2022/11/21 21:17:00 UTC

[jira] [Created] (MYFACES-4507) TCK: testInjectFlowMap#testInjectFlowMap: NullPointerException in Flow

Volodymyr Siedlecki created MYFACES-4507:
--------------------------------------------

             Summary: 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: 4.0.0-RC2, 2.3-next-M7, 2.3.10, 2.2.15
            Reporter: Volodymyr Siedlecki


{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)