Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nkorange committed Feb 25, 2019
1 parent 6b448c4 commit 1f943de
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ public JSONObject list(HttpServletRequest request) throws Exception {
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)) {
Expand Down

0 comments on commit 1f943de

Please sign in to comment.