git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-4059 fix that boolean for non-value query string args
[jalview.git]
/
src
/
jalview
/
bin
/
ArgsParser.java
diff --git
a/src/jalview/bin/ArgsParser.java
b/src/jalview/bin/ArgsParser.java
index
c927f1f
..
ab33542
100644
(file)
--- a/
src/jalview/bin/ArgsParser.java
+++ b/
src/jalview/bin/ArgsParser.java
@@
-42,7
+42,7
@@
public class ArgsParser
for (int i = 0; i < args.length; i++)
{
String arg = args[i].trim();
for (int i = 0; i < args.length; i++)
{
String arg = args[i].trim();
- if (arg.charAt(0) == '-')
+ if (arg.length() > 0 && arg.charAt(0) == '-')
{
arg = arg.substring(1);
}
{
arg = arg.substring(1);
}