From 8f2acf658e855209c6db6b68d5cc0779733c3d7e Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 25 May 2005 16:36:57 +0000 Subject: [PATCH] selectiongroup could be null --- src/jalview/gui/PCAPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/gui/PCAPanel.java b/src/jalview/gui/PCAPanel.java index 8e0bc37..d0b3bbc 100755 --- a/src/jalview/gui/PCAPanel.java +++ b/src/jalview/gui/PCAPanel.java @@ -23,7 +23,7 @@ public class PCAPanel extends GPCAPanel implements Runnable public PCAPanel(AlignViewport av, SequenceI[] s) { this.av = av; - if(av.getSelectionGroup().getSize()>3) + if(av.getSelectionGroup()!=null && av.getSelectionGroup().getSize()>3) { s = new Sequence[av.getSelectionGroup().getSize()]; for(int i=0; i