aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/att/nsa/mr/client/HostSelector.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/att/nsa/mr/client/HostSelector.java b/src/main/java/com/att/nsa/mr/client/HostSelector.java
index de0e52c..7e92bd8 100644
--- a/src/main/java/com/att/nsa/mr/client/HostSelector.java
+++ b/src/main/java/com/att/nsa/mr/client/HostSelector.java
@@ -66,6 +66,7 @@ public class HostSelector
if (signature == null) {
return;
}
+ if(signature!=null && !baseHosts.isEmpty()) {
int index = Math.abs(signature.hashCode()) % baseHosts.size();
Iterator it = this.fBaseHosts.iterator();
@@ -74,6 +75,7 @@ public class HostSelector
it.next();
}
this.fIdealHost = ((String)it.next());
+ }
}
public String selectBaseHost()