Fixed NPE that could be thrown
@@ -64,8 +64,10 @@ public final class PrometheusMetricsTrackerManager implements MetricsTrackerMana
@Override
public void stop() {
+ if (server != null) {
server.stop();
}
+ }
private void register(final String jmxConfig) {
if (!registered.compareAndSet(false, true)) {
