diff --git a/spring-cloud-dataflow-rest-client/src/main/java/org/springframework/cloud/dataflow/rest/client/TaskTemplate.java b/spring-cloud-dataflow-rest-client/src/main/java/org/springframework/cloud/dataflow/rest/client/TaskTemplate.java index 92ec5a2f15..ab69ee1dcc 100644 --- a/spring-cloud-dataflow-rest-client/src/main/java/org/springframework/cloud/dataflow/rest/client/TaskTemplate.java +++ b/spring-cloud-dataflow-rest-client/src/main/java/org/springframework/cloud/dataflow/rest/client/TaskTemplate.java @@ -142,7 +142,12 @@ public class TaskTemplate implements TaskOperations { this.restTemplate = restTemplate; String version = VersionUtils.getThreePartVersion(dataFlowServerVersion); - Assert.isTrue(VersionUtils.isDataFlowServerVersionGreaterThanOrEqualToRequiredVersion(version, VALIDATION_MIN_VERSION), () -> "Minimum Data Flow version required is " + VALIDATION_MIN_VERSION + " but got " + version); + if (StringUtils.hasText(version)) { + Assert.isTrue( + VersionUtils.isDataFlowServerVersionGreaterThanOrEqualToRequiredVersion(version, + VALIDATION_MIN_VERSION), + () -> "Minimum Data Flow version required is " + VALIDATION_MIN_VERSION + " but got " + version); + } this.aboutLink = resources.getLink("about").get();