JAL-1185 patch NPE - create new group for subtree on each view
authorjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 2 Oct 2012 15:42:57 +0000 (16:42 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 2 Oct 2012 15:42:57 +0000 (16:42 +0100)
src/jalview/gui/TreeCanvas.java

index 9f65511..7d413f6 100755 (executable)
@@ -931,7 +931,7 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable,
           sg.cs.setConservation(c);
         }
 
-        aps[a].av.getAlignment().addGroup(sg);
+        aps[a].av.getAlignment().addGroup(new SequenceGroup(sg));
       }
     }
     // notify the panel to redo any group specific stuff.