8208579: [jpackager] --secondary-launcher arg fails when properties file has no icon
Reviewed-by: almatvee
--- a/src/jdk.packager/share/classes/jdk/packager/internal/SecondaryLauncherArguments.java Thu Aug 02 17:40:34 2018 -0400
+++ b/src/jdk.packager/share/classes/jdk/packager/internal/SecondaryLauncherArguments.java Thu Aug 02 17:42:35 2018 -0400
@@ -76,8 +76,9 @@
putUnlessNull(bundleParams, Arguments.CLIOptions.SINGLETON.getId(),
getOptionValue(CLIOptions.SINGLETON));
+ String value = getOptionValue(CLIOptions.ICON);
putUnlessNull(bundleParams, Arguments.CLIOptions.ICON.getId(),
- new File(getOptionValue(CLIOptions.ICON)));
+ (value == null) ? null : new File(value));
String argumentStr = getOptionValue(CLIOptions.ARGUMENTS);
putUnlessNullOrEmpty(bundleParams,