{{ 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.
The problem is in the implementation of {{ WeldSEProvider.getCDI() }}
It should not return null if there is no active container. Instead it should produce {{ IllegalStateException }} |
|