Need to test metrics is not null to return a relevant value

This commit is contained in:
Julien Viet
2015-03-27 16:31:07 +01:00
parent 64246e66c2
commit 2df43be4d3
2 changed files with 2 additions and 2 deletions

View File

@@ -376,7 +376,7 @@ public class HttpServerImpl implements HttpServer, Closeable, MetricsProvider {
@Override
public String metricBaseName() {
return metrics.baseName();
return metrics != null ? metrics.baseName() : null;
}
SSLHelper getSslHelper() {

View File

@@ -320,7 +320,7 @@ public class NetServerImpl implements NetServer, Closeable, MetricsProvider {
@Override
public String metricBaseName() {
return metrics.baseName();
return metrics != null ? metrics.baseName() : null;
}
@Override