diff --git a/src/Unleash/Communication/UnleashApiClient.cs b/src/Unleash/Communication/UnleashApiClient.cs index c64ee3b..fd291d3 100644 --- a/src/Unleash/Communication/UnleashApiClient.cs +++ b/src/Unleash/Communication/UnleashApiClient.cs @@ -223,7 +223,7 @@ public async Task SendMetrics(Yggdrasil.MetricsBucket metrics, Cancellatio { AppName = clientRequestHeaders.AppName, InstanceId = clientRequestHeaders.InstanceTag, - Bucket = metrics + Bucket = metrics ?? new Yggdrasil.MetricsBucket(new Dictionary(), DateTimeOffset.UtcNow, DateTimeOffset.UtcNow) }; using (var request = new HttpRequestMessage(HttpMethod.Post, requestUri))