From: amwaterhouse Date: Thu, 10 Nov 2005 11:05:04 +0000 (+0000) Subject: If selectionGroup is null, return X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=fe7876eb20657a2f1f94b1f8fcf0cea5a3af0b82;p=jalview.git If selectionGroup is null, return --- diff --git a/src/jalview/gui/IdPanel.java b/src/jalview/gui/IdPanel.java index 4032a5e..4a4ea63 100755 --- a/src/jalview/gui/IdPanel.java +++ b/src/jalview/gui/IdPanel.java @@ -318,6 +318,9 @@ public class IdPanel extends JPanel implements MouseListener, */ void selectSeqs(int start, int end) { + if(av.getSelectionGroup()==null) + return; + lastid = start; if (end < start) @@ -330,7 +333,7 @@ public class IdPanel extends JPanel implements MouseListener, for (int i = start; i <= end; i++) { - av.getSelectionGroup().addSequence(av.getAlignment().getSequenceAt(i), + av.getSelectionGroup().addSequence(av.getAlignment().getSequenceAt(i), true); } }