From 53ec6ec5b4b6288bd8f33162a9974cc3a0a16c91 Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 15 Apr 2010 09:20:28 +0000 Subject: [PATCH] nullpointer bugfix (another repaint racecondition) --- src/jalview/gui/SeqCanvas.java | 3 +++ 1 file changed, 3 insertions(+) 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)); -- 1.7.10.2