From 6b5381f3dc781b2503be10f46850d2b161772934 Mon Sep 17 00:00:00 2001 From: amell Date: Thu, 31 Mar 2016 11:00:51 -0500 Subject: [PATCH] Sentinel GET-MASTER-ADDR-BY-NAME throws exception when service name is not being watched by sentinel. --- .../StackExchange/Redis/ResultProcessor.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/StackExchange.Redis/StackExchange/Redis/ResultProcessor.cs b/StackExchange.Redis/StackExchange/Redis/ResultProcessor.cs index a9d1c7347a..c5c94fb298 100644 --- a/StackExchange.Redis/StackExchange/Redis/ResultProcessor.cs +++ b/StackExchange.Redis/StackExchange/Redis/ResultProcessor.cs @@ -1235,8 +1235,13 @@ protected override bool SetResultCore(PhysicalConnection connection, Message mes { SetResult(message, null); return true; - } - break; + } + break; + case ResultType.SimpleString: + //We don't want to blow up if the master is not found + if (result.IsNull) + return true; + break; } return false; }