diff --git a/camel-admin/src/main/java/com/dianping/phoenix/lb/service/DefaultNginxServiceImpl.java b/camel-admin/src/main/java/com/dianping/phoenix/lb/service/DefaultNginxServiceImpl.java index 01aa776..02222af 100644 --- a/camel-admin/src/main/java/com/dianping/phoenix/lb/service/DefaultNginxServiceImpl.java +++ b/camel-admin/src/main/java/com/dianping/phoenix/lb/service/DefaultNginxServiceImpl.java @@ -140,6 +140,11 @@ public class DefaultNginxServiceImpl implements NginxService { if (resultPair.getKey()) { String namesStr = resultPair.getValue().getMessage(); + + if (StringUtils.isEmpty(namesStr) || "".equals(namesStr.trim())) { + return new HashSet(); + } + Set vsNames = new HashSet(Arrays.asList(namesStr.split("\t"))); logger.info("[success][Agent][listVS]");