From b638a305a88456b3bed6a88676c75ddb8b2ecaa0 Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 27 Sep 2011 10:27:00 +0100 Subject: [PATCH] NPE fix --- src/jalview/appletgui/SeqPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/appletgui/SeqPanel.java b/src/jalview/appletgui/SeqPanel.java index b0de2ae..f961212 100644 --- a/src/jalview/appletgui/SeqPanel.java +++ b/src/jalview/appletgui/SeqPanel.java @@ -458,7 +458,7 @@ public class SeqPanel extends Panel implements MouseMotionListener, SequenceI sequence = av.alignment.getSequenceAt(findSeq(evt)); if (evt.getClickCount() > 1) { - if (av.getSelectionGroup().getSize() == 1 + if (av.getSelectionGroup()!=null && av.getSelectionGroup().getSize() == 1 && av.getSelectionGroup().getEndRes() - av.getSelectionGroup().getStartRes() < 2) { -- 1.7.10.2