fix for NPE in my unit test.

2020-06-28 10:40:25.832 - org.springframework.beans.factory.support.DisposableBeanAdapter -467378 [SpringContextShutdownHook] WARN  [] - Invocation of destroy method failed on bean with name 'tomcatMetricsBinder': java.lang.NullPointerException

Comment From: pivotal-issuemaster

@im47cn Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-issuemaster

@im47cn Thank you for signing the Contributor License Agreement!