JAL-1684 fix bug in AlignmentView constructor
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 11 Mar 2015 14:18:32 +0000 (14:18 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 11 Mar 2015 14:18:32 +0000 (14:18 +0000)
src/jalview/datamodel/AlignmentView.java

index f73fb74..b36a0a5 100644 (file)
@@ -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