NPE fix
authorjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 27 Sep 2011 09:27:00 +0000 (10:27 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 27 Sep 2011 09:27:00 +0000 (10:27 +0100)
src/jalview/appletgui/SeqPanel.java

index b0de2ae..f961212 100644 (file)
@@ -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)
       {