Merge branch '2.3.x'

Closes gh-22168
This commit is contained in:
Andy Wilkinson
2020-06-30 14:13:07 +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();
}
}
}