From 165ed616ebe279381ba0fc6a01eee6a6a9892161 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Wed, 11 Mar 2015 14:18:32 +0000 Subject: [PATCH] JAL-1684 fix bug in AlignmentView constructor --- src/jalview/datamodel/AlignmentView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 1.7.10.2