Merge branch '1.5.x'

This commit is contained in:
Stephane Nicoll
2017-07-19 15:45:14 +02:00

View File

@@ -148,7 +148,7 @@ public class DropwizardMetricServices implements CounterService, GaugeService {
}
catch (IllegalArgumentException ex) {
Metric added = this.registry.getMetrics().get(name);
registrar.checkExisting(metric);
registrar.checkExisting(added);
return (T) added;
}
}