changeset 6841:e44ae258c6db

RT-36754: Silent NPE when bundling Summary: fix increment bug
author shemnon
date Mon, 21 Apr 2014 18:35:25 -0600
parents 0bd76d001286
children 89a9d307ec2f
files modules/fxpackager/src/main/java/com/sun/javafx/tools/packager/Main.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/fxpackager/src/main/java/com/sun/javafx/tools/packager/Main.java	Mon Apr 21 17:00:35 2014 -0700
+++ b/modules/fxpackager/src/main/java/com/sun/javafx/tools/packager/Main.java	Mon Apr 21 18:35:25 2014 -0600
@@ -263,7 +263,7 @@
                             BundleType type = BundleType.ALL;
                             String format = null; //null means ANY
                             if (i+1 < args.length && !args[i+1].startsWith("-")) {
-                                String v = args[i+1];
+                                String v = args[++i];
                                 //parsing logic is the same as in DeployFXTask
                                 if ("image".equals(v)) {
                                     type = BundleType.IMAGE;