ISSUE-803 Backend fail if there is no version property (#814)

This commit is contained in:
German Osin 2021-08-23 17:11:42 +03:00 committed by GitHub
parent eaf77c49a2
commit d894413251
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -365,7 +365,7 @@ public class ClusterUtil {
.map(Config::entries)
.flatMap(Collection::stream)
.filter(entry -> entry.name().contains(CLUSTER_VERSION_PARAM_KEY))
.findFirst().orElseThrow().value();
.findFirst().map(ConfigEntry::value).orElse("1.0-UNKNOWN");
}