Condition added
Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.onap.dmaap.messagerouter.dmaapclient%3AdmaapClient#resolved=false|assignees=soumendu|severities=CRITICAL
Location:
src/main/java/com/att/nsa/mr/client/HostSelector.java
Line No-69
Change-Id: Ic029c799efda27e975c409eac8a96b2c629da056
Issue-ID: DMAAP-176
Signed-off-by: Soumendu Sekhar Acharya <sa00498080@techmahindra.com>
if (signature == null) {
return;
}
+ if(signature!=null && !baseHosts.isEmpty()) {
int index = Math.abs(signature.hashCode()) % baseHosts.size();
Iterator it = this.fBaseHosts.iterator();
it.next();
}
this.fIdealHost = ((String)it.next());
+ }
}
public String selectBaseHost()