From: amwaterhouse Date: Fri, 18 Mar 2005 17:34:56 +0000 (+0000) Subject: null point bug fixed X-Git-Tag: Release_2_0~550 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=99cb058c4b312055ca758890b10d41428105dabe;p=jalview.git null point bug fixed --- 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();