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:
41e1e41
)
bugfix for alignments without aligned codon frames
author
jprocter
<Jim Procter>
Mon, 29 Oct 2007 12:46:02 +0000
(12:46 +0000)
committer
jprocter
<Jim Procter>
Mon, 29 Oct 2007 12:46:02 +0000
(12:46 +0000)
src/jalview/ws/WSThread.java
patch
|
blob
|
history
diff --git
a/src/jalview/ws/WSThread.java
b/src/jalview/ws/WSThread.java
index
a23dfe1
..
f3dd969
100644
(file)
--- a/
src/jalview/ws/WSThread.java
+++ b/
src/jalview/ws/WSThread.java
@@
-339,8
+339,11
@@
public abstract class WSThread
if (alignFrame!=null)
{
AlignedCodonFrame[] cf = alignFrame.getViewport().getAlignment().getCodonFrames();
- codonframe = new AlignedCodonFrame[cf.length];
- System.arraycopy(cf, 0, codonframe, 0, cf.length);
+ if (cf!=null)
+ {
+ codonframe = new AlignedCodonFrame[cf.length];
+ System.arraycopy(cf, 0, codonframe, 0, cf.length);
+ }
}
}
}