preliminary patch to reduce problem observed in JAL-546
[jalview.git] / src / jalview / appletgui / IdPanel.java
index 43da907..402a8bf 100755 (executable)
@@ -363,7 +363,10 @@ public class IdPanel extends Panel implements MouseListener,
       end = tmp;
       lastid = end;
     }
-
+    if (av.getSelectionGroup()==null)
+    {
+      av.setSelectionGroup(new SequenceGroup());
+    }
     for (int i = start; i <= end; i++)
     {
       av.getSelectionGroup().addSequence(