From eb8eb7fecfe58c7c4ac4b476dd1357aaf5b387b0 Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 2 Oct 2012 16:42:57 +0100 Subject: [PATCH] JAL-1185 patch NPE - create new group for subtree on each view --- src/jalview/gui/TreeCanvas.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/gui/TreeCanvas.java b/src/jalview/gui/TreeCanvas.java index 9f65511..7d413f6 100755 --- a/src/jalview/gui/TreeCanvas.java +++ b/src/jalview/gui/TreeCanvas.java @@ -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. -- 1.7.10.2