From fe7876eb20657a2f1f94b1f8fcf0cea5a3af0b82 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 10 Nov 2005 11:05:04 +0000 Subject: [PATCH] If selectionGroup is null, return --- src/jalview/gui/IdPanel.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } } -- 1.7.10.2