summaryrefslogtreecommitdiff
path: root/csharp/src/IceLocatorDiscovery/PluginI.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/src/IceLocatorDiscovery/PluginI.cs')
-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)
{