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:
96a5726
)
JAL-3763 failsafe check for null
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 8 Oct 2020 14:29:24 +0000
(15:29 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 8 Oct 2020 14:29:24 +0000
(15:29 +0100)
src/jalview/datamodel/AlignedCodonFrame.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/AlignedCodonFrame.java
b/src/jalview/datamodel/AlignedCodonFrame.java
index
d59078b
..
5240f0c
100644
(file)
--- a/
src/jalview/datamodel/AlignedCodonFrame.java
+++ b/
src/jalview/datamodel/AlignedCodonFrame.java
@@
-170,6
+170,10
@@
public class AlignedCodonFrame
int[] codon = null;
SequenceI mappedSeq = null;
SequenceI ds = seq.getDatasetSequence();
+ if (ds == null)
+ {
+ ds = seq;
+ }
if (this.fromSeq == seq || this.fromSeq == ds)
{