Skip to content

Commit

Permalink
Code changes to fix null ref exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
kundadebdatta committed Aug 16, 2023
1 parent c49ed81 commit 83f90d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Microsoft.Azure.Cosmos/src/Routing/GatewayAddressCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public async Task<PartitionAddressInformation> TryGetAddressesAsync(
partitionKeyRangeIdentity.PartitionKeyRangeId,
forceRefresh: true)));

refreshAddressesInBackgroundTask.Exception.Handle(ex =>
refreshAddressesInBackgroundTask.Exception?.Handle(ex =>
{
DefaultTrace.TraceWarning("Failed to refresh addresses in the background for the collection rid: {0} with exception: {1}. '{2}'",
partitionKeyRangeIdentity.CollectionRid,
Expand Down

0 comments on commit 83f90d5

Please sign in to comment.