Skip to content

Commit 46be338

Browse files
author
Nick Craver
committed
Fix null ref in Sentinel
1 parent a01cd04 commit 46be338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StackExchange.Redis/ConnectionMultiplexer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2320,7 +2320,7 @@ internal EndPoint GetConfiguredMasterForService(string serviceName, int timeoutm
23202320
Task<Task<EndPoint>> firstCompleteRequest = WaitFirstNonNullIgnoreErrorsAsync(sentinelMasters);
23212321
if (!firstCompleteRequest.Wait(timeoutmillis))
23222322
throw new TimeoutException("Timeout resolving master for service");
2323-
if (firstCompleteRequest.Result.Result == null)
2323+
if (firstCompleteRequest.Result?.Result == null)
23242324
throw new Exception("Unable to determine master");
23252325

23262326
return firstCompleteRequest.Result.Result;

0 commit comments

Comments
 (0)