From: amwaterhouse Date: Fri, 2 Dec 2005 15:27:54 +0000 (+0000) Subject: Null pointer removed X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=78005cb0c9ddd81e515a0e7dbeef7647698337f2;p=jalview.git Null pointer removed --- diff --git a/src/jalview/appletgui/SeqPanel.java b/src/jalview/appletgui/SeqPanel.java index 7c524ad..1bbf15d 100755 --- a/src/jalview/appletgui/SeqPanel.java +++ b/src/jalview/appletgui/SeqPanel.java @@ -509,6 +509,9 @@ public class SeqPanel oldSeq = seq; startWrapBlock=wrappedBlock; + if(seq==-1) + return; + SequenceI sequence = (Sequence) av.getAlignment().getSequenceAt(seq); if (sequence == null || res > sequence.getLength())