[
https://issues.jboss.org/browse/CDI-743?page=com.atlassian.jira.plugin.sy...
]
Doychin Bondzhev edited comment on CDI-743 at 2/15/19 10:06 AM:
----------------------------------------------------------------
This was the first thing I implemented.
I will open PR with my change for discussion.
But this PR relies on the fact that null is valid return value for {{getCDI}}
was (Author: doychin):
This was the first thing I implemented.
I will open PR with my change for discussion.
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 .Final, 2.0.SP1
Environment: simple application that uses weld-se-core and cdi api.
Reporter: Doychin Bondzhev
Priority: Major
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)