From 01f128f638fcb801e19fa39041a160f18ae1e4ab Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 29 Oct 2007 12:46:02 +0000 Subject: [PATCH] bugfix for alignments without aligned codon frames --- src/jalview/ws/WSThread.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/jalview/ws/WSThread.java b/src/jalview/ws/WSThread.java index a23dfe1..f3dd969 100644 --- 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); + } } } } -- 1.7.10.2