// read it to the alignment
if (command.alIndex[i] < command.al.getHeight())
{
- command.al.getSequences().insertElementAt(command.seqs[i],
- command.alIndex[i]);
+ List<SequenceI> sequences;
+ synchronized (sequences=command.al.getSequences()) {
+ sequences.add(command.alIndex[i], command.seqs[i]);
+ }
}
else
{