Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In case when CDI startup is cancelled during a previous exception, a NPE might occur as creationsContexts is initialized lazy:
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Map.remove(Object)" because "this.creationalContexts" is null
at org.apache.webbeans.inject.instance.InstanceImpl.destroy (InstanceImpl.java:313)
at org.apache.tomee.microprofile.health.MPHealthCDIExtension.removeHealthCheck (MPHealthCDIExtension.java:145)
at org.apache.tomee.microprofile.health.MPHealthCDIExtension.beforeShutdown (MPHealthCDIExtension.java:125)