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:
f69e967
)
JAL-1691 defensive check for null
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 7 Apr 2015 08:17:00 +0000
(09:17 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 7 Apr 2015 08:17:00 +0000
(09:17 +0100)
src/jalview/datamodel/HiddenSequences.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/HiddenSequences.java
b/src/jalview/datamodel/HiddenSequences.java
index
35e7930
..
929e56e
100755
(executable)
--- a/
src/jalview/datamodel/HiddenSequences.java
+++ b/
src/jalview/datamodel/HiddenSequences.java
@@
-278,11
+278,14
@@
public class HiddenSequences
public boolean isHidden(SequenceI seq)
{
- for (int i = 0; i < hiddenSequences.length; i++)
+ if (hiddenSequences != null)
{
- if (hiddenSequences[i] != null && hiddenSequences[i] == seq)
+ for (int i = 0; i < hiddenSequences.length; i++)
{
- return true;
+ if (hiddenSequences[i] != null && hiddenSequences[i] == seq)
+ {
+ return true;
+ }
}
}