From: jprocter Date: Tue, 27 Sep 2011 09:27:00 +0000 (+0100) Subject: NPE fix X-Git-Tag: Release_2_7~10 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b638a305a88456b3bed6a88676c75ddb8b2ecaa0;p=jalview.git NPE fix --- 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) {