diff --git a/installer/src/main/java/ca/weblite/jdeploy/installer/Main.java b/installer/src/main/java/ca/weblite/jdeploy/installer/Main.java index 44fe80eb..e1a4ec4d 100644 --- a/installer/src/main/java/ca/weblite/jdeploy/installer/Main.java +++ b/installer/src/main/java/ca/weblite/jdeploy/installer/Main.java @@ -769,8 +769,9 @@ private void install() throws Exception { String nameSuffix = ""; String titleSuffix = ""; if (appInfo().getNpmVersion().startsWith("0.0.0-")) { - nameSuffix = "-" + appInfo().getNpmVersion().substring(appInfo().getNpmVersion().indexOf("-") + 1).trim(); - titleSuffix = "-" + appInfo().getNpmVersion().substring(appInfo().getNpmVersion().indexOf("-") + 1).trim(); + String v = appInfo().getNpmVersion(); + nameSuffix = "-" +v.substring(v.indexOf("-") + 1).trim(); + titleSuffix = "-" + v.substring(v.indexOf("-") + 1).trim(); } String exeName = deriveLinuxBinaryNameFromTitle(appInfo().getTitle()) + nameSuffix;