Polish "Avoid NPE when binder is closed before started event"
See gh-22141
This commit is contained in:
@@ -86,7 +86,7 @@ public class TomcatMetricsBinder implements ApplicationListener<ApplicationStart
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
if (null != this.tomcatMetrics) {
|
||||
if (this.tomcatMetrics != null) {
|
||||
this.tomcatMetrics.close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user