diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/GraalVM.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/GraalVM.java index f506dfd1b8b00..712630ce95a9c 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/GraalVM.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/GraalVM.java @@ -265,8 +265,11 @@ private static boolean isMandrel(String s) { * Returns the Mandrel/GraalVM version as a string. e.g. 21.3.0-rc1 */ public String getVersionAsString() { - return String.join(Arrays.stream(versions).mapToObj(Integer::toString).collect(Collectors.joining()), ".") + "-" - + suffix; + String version = Arrays.stream(versions).mapToObj(Integer::toString).collect(Collectors.joining(".")); + if (suffix != null) { + return version + "-" + suffix; + } + return version; } @Override