From 78005cb0c9ddd81e515a0e7dbeef7647698337f2 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 2 Dec 2005 15:27:54 +0000 Subject: [PATCH] Null pointer removed --- src/jalview/appletgui/SeqPanel.java | 3 +++ 1 file changed, 3 insertions(+) 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()) -- 1.7.10.2