selectiongroup could be null
authoramwaterhouse <Andrew Waterhouse>
Wed, 25 May 2005 16:36:57 +0000 (16:36 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 25 May 2005 16:36:57 +0000 (16:36 +0000)
src/jalview/gui/PCAPanel.java

index 8e0bc37..d0b3bbc 100755 (executable)
@@ -23,7 +23,7 @@ public class PCAPanel extends GPCAPanel implements Runnable
   public PCAPanel(AlignViewport av, SequenceI[] s) {\r
 \r
     this.av = av;\r
-    if(av.getSelectionGroup().getSize()>3)\r
+    if(av.getSelectionGroup()!=null && av.getSelectionGroup().getSize()>3)\r
     {\r
       s = new Sequence[av.getSelectionGroup().getSize()];\r
       for(int i=0; i<s.length; i++)\r