Merge branch '2.2.x' into 2.3.x

Closes gh-22167
This commit is contained in:
Andy Wilkinson
2020-06-30 14:09:57 +01:00
2 changed files with 41 additions and 1 deletions

View File

@@ -86,7 +86,9 @@ public class TomcatMetricsBinder implements ApplicationListener<ApplicationStart
@Override
public void destroy() {
this.tomcatMetrics.close();
if (this.tomcatMetrics != null) {
this.tomcatMetrics.close();
}
}
}