Merge branch '2.2.x' into 2.3.x
Closes gh-22167
This commit is contained in:
@@ -86,7 +86,9 @@ public class TomcatMetricsBinder implements ApplicationListener<ApplicationStart
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
this.tomcatMetrics.close();
|
||||
if (this.tomcatMetrics != null) {
|
||||
this.tomcatMetrics.close();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user