{
nextSeq = av.alignment.getSequenceAt(i);
if (nextSeq==null)
+ {
+ // occasionally, a race condition occurs such that the alignment row is empty
continue;
+ }
sr.drawSequence(nextSeq, av.alignment.findAllGroups(nextSeq),
startRes, endRes, offset + ((i - startSeq) * av.charHeight));