Skip to content

Commit

Permalink
judge endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
hujun-w-2 committed Aug 12, 2022
1 parent b91abb8 commit 861e8c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public ServerListManager(Properties properties, String namespace) {
if (!serverList.isEmpty()) {
currentIndex.set(new Random().nextInt(serverList.size()));
}
if (serverList.isEmpty() && StringUtils.isNotEmpty(endpoint)) {
if (serverList.isEmpty() && StringUtils.isEmpty(endpoint)) {
throw new NacosLoadException("serverList is empty,please check configuration");
}
}
Expand Down

0 comments on commit 861e8c5

Please sign in to comment.