From 99cb058c4b312055ca758890b10d41428105dabe Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 18 Mar 2005 17:34:56 +0000 Subject: [PATCH] null point bug fixed --- src/jalview/gui/SeqPanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index 255be5d..55bec56 100755 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -388,7 +388,8 @@ public class SeqPanel extends JPanel oldSeq = seq; SequenceI sequence = (Sequence) av.getAlignment().getSequenceAt(seq); - if(res>sequence.getLength()) + + if(sequence==null || res>sequence.getLength()) return; stretchGroup = av.getSelectionGroup(); -- 1.7.10.2