Skip to content

Commit

Permalink
Fix urls may be null, and NullPointerException will be thrown in Conf…
Browse files Browse the repository at this point in the history
…igValidationUtils (#8020) (#8021)

Fixes #8020
  • Loading branch information
skyguard1 committed Jun 10, 2021
1 parent ebd9b4b commit e6f39cd
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -205,6 +205,9 @@ public static List<URL> loadRegistries(AbstractInterfaceConfig interfaceConfig,
}
List<URL> urls = UrlUtils.parseURLs(address, map);

if (urls == null) {
throw new IllegalStateException(String.format("url should not be null,address is %s", address));
}
for (URL url : urls) {

url = URLBuilder.from(url)
Expand Down

0 comments on commit e6f39cd

Please sign in to comment.