Skip to content

Commit

Permalink
fix null client
Browse files Browse the repository at this point in the history
  • Loading branch information
kunga committed Feb 3, 2021
1 parent 5d5096f commit bd3fae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Vostok.ZooKeeper.Client/ZooKeeperClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ private async Task<TResult> ExecuteOperation<TRequest, TResult>(BaseOperation<TR
try
{
var client = await clientHolder.GetConnectedClient().ConfigureAwait(false);
span.SetReplica(client.GetReplica() ?? "not-connected");
span.SetReplica(client?.GetReplica() ?? "not-connected");

if (client == null)
result = operation.CreateUnsuccessfulResult(
Expand Down

0 comments on commit bd3fae4

Please sign in to comment.