Authored by mlge

ip一键对比 bug修复

@@ -148,6 +148,7 @@ public class CompareCtrl { @@ -148,6 +148,7 @@ public class CompareCtrl {
148 serversExecutor.shutdownNow(); 148 serversExecutor.shutdownNow();
149 } 149 }
150 } 150 }
  151 + LOGGER.info("check ip tasks is over.");
151 resp.setData(compareResults); 152 resp.setData(compareResults);
152 return resp; 153 return resp;
153 } 154 }
@@ -125,6 +125,10 @@ public class ServiceCompare { @@ -125,6 +125,10 @@ public class ServiceCompare {
125 125
126 String ips = StringUtils.substringBetween(destLine, "=(", ")"); 126 String ips = StringUtils.substringBetween(destLine, "=(", ")");
127 127
  128 + if(StringUtils.isBlank(ips)){
  129 + return ipList;
  130 + }
  131 +
128 String[] ipArray = ips.split("master@"); 132 String[] ipArray = ips.split("master@");
129 133
130 if (null == ipArray) { 134 if (null == ipArray) {