If selectionGroup is null, return
authoramwaterhouse <Andrew Waterhouse>
Thu, 10 Nov 2005 11:05:04 +0000 (11:05 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 10 Nov 2005 11:05:04 +0000 (11:05 +0000)
src/jalview/gui/IdPanel.java

index 4032a5e..4a4ea63 100755 (executable)
@@ -318,6 +318,9 @@ public class IdPanel extends JPanel implements MouseListener,
      */\r
     void selectSeqs(int start, int end)\r
     {\r
+      if(av.getSelectionGroup()==null)\r
+            return;\r
+\r
         lastid = start;\r
 \r
         if (end < start)\r
@@ -330,7 +333,7 @@ public class IdPanel extends JPanel implements MouseListener,
 \r
         for (int i = start; i <= end; i++)\r
         {\r
-            av.getSelectionGroup().addSequence(av.getAlignment().getSequenceAt(i),\r
+          av.getSelectionGroup().addSequence(av.getAlignment().getSequenceAt(i),\r
                 true);\r
         }\r
     }\r