mirror of https://github.com/grpc/grpc-java.git
Add null check to cleanup to avoid NPE (#11340)
This commit is contained in:
parent
25a8b7c507
commit
603033f1fa
|
|
@ -308,7 +308,9 @@ public class StressTestClient {
|
|||
}
|
||||
|
||||
try {
|
||||
if (metricsServer != null) {
|
||||
metricsServer.shutdownNow();
|
||||
}
|
||||
} catch (Throwable t) {
|
||||
log.log(Level.WARNING, "Error shutting down metrics service!", t);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue