summaryrefslogtreecommitdiff
path: root/csharp/src
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-12-05 16:34:52 +0100
committerJose <jose@zeroc.com>2019-12-05 16:34:52 +0100
commit1acaa2112ff6a6a19bffeecebe83e1764903acdb (patch)
treecd38476cc7109589f21b404df18f2d8feb891553 /csharp/src
parentFix nodiscard warnings report by Visual Studio 2019 (16.4.0) (diff)
downloadice-1acaa2112ff6a6a19bffeecebe83e1764903acdb.tar.bz2
ice-1acaa2112ff6a6a19bffeecebe83e1764903acdb.tar.xz
ice-1acaa2112ff6a6a19bffeecebe83e1764903acdb.zip
Ignore null locator replies
Diffstat (limited to 'csharp/src')
-rw-r--r--csharp/src/IceLocatorDiscovery/PluginI.cs13
1 files changed, 11 insertions, 2 deletions
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)
{