From: jprocter Date: Thu, 15 Apr 2010 09:20:28 +0000 (+0000) Subject: nullpointer bugfix (another repaint racecondition) X-Git-Tag: Release_2_5~70 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=53ec6ec5b4b6288bd8f33162a9974cc3a0a16c91;p=jalview.git nullpointer bugfix (another repaint racecondition) --- diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 77b8938..ad5e052 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -695,7 +695,10 @@ public class SeqCanvas extends JComponent { 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));