Cluster name was null at this context

This commit is contained in:
Edward Capriolo
2016-05-03 11:15:26 -04:00
parent a7f90aae08
commit d191c7cb6d
2 changed files with 12 additions and 16 deletions

View File

@ -65,6 +65,9 @@ abstract public class PassiveGossipThread implements Runnable {
+ gossipManager.getMyself().getPort());
GossipService.LOGGER.debug("I am " + gossipManager.getMyself());
cluster = gossipManager.getMyself().getClusterName();
if (cluster == null){
throw new IllegalArgumentException("cluster was null");
}
} catch (SocketException ex) {
GossipService.LOGGER.warn(ex);
throw new RuntimeException(ex);