From: amwaterhouse Date: Wed, 25 May 2005 16:36:57 +0000 (+0000) Subject: selectiongroup could be null X-Git-Tag: Release_2_0~192 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8f2acf658e855209c6db6b68d5cc0779733c3d7e;p=jalview.git selectiongroup could be null --- 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