patch for JAL-760
authorjprocter <Jim Procter>
Fri, 4 Feb 2011 11:11:26 +0000 (11:11 +0000)
committerjprocter <Jim Procter>
Fri, 4 Feb 2011 11:11:26 +0000 (11:11 +0000)
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(