From: gmungoc Date: Wed, 11 Mar 2015 14:18:32 +0000 (+0000) Subject: JAL-1684 fix bug in AlignmentView constructor X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=165ed616ebe279381ba0fc6a01eee6a6a9892161;p=jalview.git JAL-1684 fix bug in AlignmentView constructor --- diff --git a/src/jalview/datamodel/AlignmentView.java b/src/jalview/datamodel/AlignmentView.java index f73fb74..b36a0a5 100644 --- a/src/jalview/datamodel/AlignmentView.java +++ b/src/jalview/datamodel/AlignmentView.java @@ -179,7 +179,9 @@ public class AlignmentView sgrps[g] = new ScGroup(); sgrps[g].sg = new SequenceGroup(sg); addedgps[g] = false; - seqsets.set(g, sg.getSequences(null)); + // can't set entry 0 in an empty list + // seqsets.set(g, sg.getSequences(null)); + seqsets.add(sg.getSequences()); } // seqsets now contains vectors (should be sets) for each group, so we can // track when we've done with the group