Properly handle spring boot version metadata failure

See gh-145
This commit is contained in:
Stephane Nicoll 2019-06-07 16:40:15 -04:00
parent 04b2777b32
commit 593b9ec878

View File

@ -66,7 +66,8 @@ public class DefaultInitializrMetadataUpdateStrategy
/**
* Fetch the available Spring Boot versions using the specified service url.
* @param url the url to the spring-boot project metadata
* @return the spring boot versions metadata.
* @return the spring boot versions metadata or {@code null} if it could not be
* retrieved
*/
protected List<DefaultMetadataElement> fetchSpringBootVersions(String url) {
if (StringUtils.hasText(url)) {