This commit is contained in:
nkorange 2019-02-25 21:27:11 +08:00
parent 6b448c4bb5
commit 1f943dee6e

View File

@ -158,7 +158,10 @@ public class ServiceController {
List<String> doms = domainsManager.getAllDomNamesList(namespaceId);
if (doms == null || doms.isEmpty()) {
throw new NacosException(NacosException.INVALID_PARAM, "No service exist in " + namespaceId);
JSONObject result = new JSONObject();
result.put("doms", new ArrayList<>());
result.put("count", 0);
return result;
}
if (StringUtils.isNotBlank(selectorString)) {