JAL-4187 JAL-629 JAL-3830 Fix ArgParser to check for empty string argument. Fixed...
[jalview.git] / src / jalview / bin / Jalview.java
index fb31189..59382fd 100755 (executable)
@@ -302,8 +302,11 @@ public class Jalview
       System.setSecurityManager(null);
     }
 
-    if (args == null)
+    if (args == null || args.length == 0 || (args.length == 1
+            && (args[0] == null || args[0].length() == 0)))
+    {
       args = new String[] {};
+    }
 
     // get args needed before proper ArgParser
     bootstrapArgs = BootstrapArgs.getBootstrapArgs(args);