From 1acaa2112ff6a6a19bffeecebe83e1764903acdb Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 5 Dec 2019 16:34:52 +0100 Subject: Ignore null locator replies --- csharp/src/IceLocatorDiscovery/PluginI.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'csharp/src') diff --git a/csharp/src/IceLocatorDiscovery/PluginI.cs b/csharp/src/IceLocatorDiscovery/PluginI.cs index 2bc28527f1b..a69150639e5 100644 --- a/csharp/src/IceLocatorDiscovery/PluginI.cs +++ b/csharp/src/IceLocatorDiscovery/PluginI.cs @@ -267,8 +267,17 @@ namespace IceLocatorDiscovery { lock(this) { - if(locator == null || - (_instanceName.Length > 0 && !locator.ice_getIdentity().category.Equals(_instanceName))) + if(locator == null) + { + if(_traceLevel > 2) + { + _lookup.ice_getCommunicator().getLogger().trace("Lookup", + "ignoring locator reply: (null locator)"); + } + return; + } + + if(_instanceName.Length > 0 && !locator.ice_getIdentity().category.Equals(_instanceName)) { if(_traceLevel > 2) { -- cgit v1.2.3