ISSUE-803 Backend fail if there is no version property (#814)
This commit is contained in:
parent
eaf77c49a2
commit
d894413251
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue