• im47cn's avatar
    Avoid NPE when binder is closed before started event · b34c2685
    im47cn authored
    Previously, if TomcatMetricsBinder destroy() was called before it had
    received an ApplicationStartedEvent an NPE would be thrown due to
    TomcatMetrics being null. This NPE was then caught and logged at
    warning level by the disposable bean adapter.
    
    This prevents the NPE by checking that the TomcatMetrics instance is
    null before calling close() on it.
    
    See gh-22141
    b34c2685
Name
Last commit
Last update
.bomr Loading commit data...
.github Loading commit data...
.mvn Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src/checkstyle Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...