Null pointer removed
authoramwaterhouse <Andrew Waterhouse>
Fri, 2 Dec 2005 15:27:54 +0000 (15:27 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 2 Dec 2005 15:27:54 +0000 (15:27 +0000)
src/jalview/appletgui/SeqPanel.java

index 7c524ad..1bbf15d 100755 (executable)
@@ -509,6 +509,9 @@ public class SeqPanel
     oldSeq = seq;\r
     startWrapBlock=wrappedBlock;\r
 \r
+    if(seq==-1)\r
+      return;\r
+\r
     SequenceI sequence = (Sequence) av.getAlignment().getSequenceAt(seq);\r
 \r
     if (sequence == null || res > sequence.getLength())\r