Skip to content

Commit

Permalink
Merge pull request alibaba#127 from aCoder2013/fix-serverlist-check
Browse files Browse the repository at this point in the history
Fix potential NPE
  • Loading branch information
Fury Zhu authored Oct 18, 2018
2 parents ab23965 + a11d205 commit 1571945
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private void refreshSrvIfNeed() {

List<String> list = getServerListFromEndpoint();

if (list.isEmpty()) {
if (CollectionUtils.isEmpty(list)) {
throw new Exception("Can not acquire vipserver list");
}

Expand Down

0 comments on commit 1571945

Please sign in to comment.