git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85db534
)
JAL-629 null check, fixed tests!
author
Ben Soares
<b.soares@dundee.ac.uk>
Fri, 9 Dec 2022 13:05:10 +0000
(13:05 +0000)
committer
Ben Soares
<b.soares@dundee.ac.uk>
Fri, 9 Dec 2022 13:05:10 +0000
(13:05 +0000)
src/jalview/bin/Commands.java
patch
|
blob
|
history
diff --git
a/src/jalview/bin/Commands.java
b/src/jalview/bin/Commands.java
index
4239ec7
..
552dda6
100644
(file)
--- a/
src/jalview/bin/Commands.java
+++ b/
src/jalview/bin/Commands.java
@@
-42,16
+42,19
@@
public class Commands
{
argParser = ap;
headless = h;
- for (String id : argParser.linkedIds())
+ if (argParser != null && argParser.linkedIds() != null)
{
- Commands cmds = new Commands();
- if (id == null)
+ for (String id : argParser.linkedIds())
{
- cmds.processUnlinked(id);
- }
- else
- {
- cmds.processLinked(id);
+ Commands cmds = new Commands();
+ if (id == null)
+ {
+ cmds.processUnlinked(id);
+ }
+ else
+ {
+ cmds.processLinked(id);
+ }
}
}
}