diff --git a/src/main/java/io/jenkins/plugins/jfrog/JfStep.java b/src/main/java/io/jenkins/plugins/jfrog/JfStep.java index c77d2ce2..fac903ee 100644 --- a/src/main/java/io/jenkins/plugins/jfrog/JfStep.java +++ b/src/main/java/io/jenkins/plugins/jfrog/JfStep.java @@ -36,7 +36,6 @@ import java.nio.charset.StandardCharsets; import java.nio.file.Paths; import java.util.List; -import java.util.Objects; import static io.jenkins.plugins.jfrog.JfrogInstallation.JFROG_BINARY_PATH; import static org.apache.commons.lang3.StringUtils.*; @@ -309,7 +308,7 @@ public boolean isApplicable(Class jobType) { } String getJfrogCliVersion(Launcher.ProcStarter launcher) throws IOException, InterruptedException { - if (!Objects.equals(this.currentCliVersion, "")){ + if (this.currentCliVersion != null && !this.currentCliVersion.isEmpty()) { return this.currentCliVersion; } ByteArrayOutputStream outputStream = new ByteArrayOutputStream();