Merge pull request #127 from aCoder2013/fix-serverlist-check
Fix potential NPE
This commit is contained in:
commit
1571945446
@ -134,7 +134,7 @@ public class NamingProxy {
|
||||
|
||||
List<String> list = getServerListFromEndpoint();
|
||||
|
||||
if (list.isEmpty()) {
|
||||
if (CollectionUtils.isEmpty(list)) {
|
||||
throw new Exception("Can not acquire vipserver list");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user