null point bug fixed
authoramwaterhouse <Andrew Waterhouse>
Fri, 18 Mar 2005 17:34:56 +0000 (17:34 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 18 Mar 2005 17:34:56 +0000 (17:34 +0000)
src/jalview/gui/SeqPanel.java

index 255be5d..55bec56 100755 (executable)
@@ -388,7 +388,8 @@ public class SeqPanel extends JPanel
     oldSeq = seq;\r
 \r
     SequenceI sequence = (Sequence) av.getAlignment().getSequenceAt(seq);\r
-    if(res>sequence.getLength())\r
+\r
+    if(sequence==null || res>sequence.getLength())\r
       return;\r
 \r
     stretchGroup = av.getSelectionGroup();\r