[cdi-dev] [JBoss JIRA] (CDI-743) NPE when trying to get BeanManager after container was closed
    Doychin Bondzhev (Jira) 
    issues at jboss.org
       
    Fri Feb 15 08:24:00 EST 2019
    
    
  
Doychin Bondzhev created CDI-743:
------------------------------------
             Summary: NPE when trying to get BeanManager after container was closed
                 Key: CDI-743
                 URL: https://issues.jboss.org/browse/CDI-743
             Project: CDI Specification Issues
          Issue Type: Bug
    Affects Versions: 2.0.SP1, 2.0 .Final
         Environment: simple application that uses weld-se-core and cdi api.
            Reporter: Doychin Bondzhev
CDI.current() should produce IllegalStateException when there is no active container at the moment.
Instead on the second call in the sample application CDI.current() returns null and that results in NPE. 
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
    
    
More information about the cdi-dev
mailing list