From 8019bc2469883d0c4b5fd5288426ef5bd590e73f Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 26 Oct 2006 09:41:36 +0000 Subject: [PATCH] sequence may be null if hidden or deleted --- src/jalview/gui/IdCanvas.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jalview/gui/IdCanvas.java b/src/jalview/gui/IdCanvas.java index 24bf616..32cbfb5 100755 --- a/src/jalview/gui/IdCanvas.java +++ b/src/jalview/gui/IdCanvas.java @@ -286,6 +286,9 @@ public class IdCanvas extends JPanel { sequence = av.alignment.getSequenceAt(i); + if(sequence==null) + continue; + if (av.hasHiddenRows) { setHiddenFont(i); -- 1.7.10.2