null pointer exception bug fix
authorjprocter <Jim Procter>
Wed, 1 Aug 2007 16:25:34 +0000 (16:25 +0000)
committerjprocter <Jim Procter>
Wed, 1 Aug 2007 16:25:34 +0000 (16:25 +0000)
src/jalview/analysis/CrossRef.java

index 9e99c7c..f475ecb 100644 (file)
@@ -377,8 +377,13 @@ public class CrossRef
           AlignmentI dataset, Vector rseqs, AlignedCodonFrame cf, boolean direct, boolean dna)\r
   {\r
     boolean found = false;\r
-    if (dataset==null)\r
+    if (dataset==null) \r
       return false;\r
+    if (dataset.getSequences()==null)\r
+    {\r
+      System.err.println("Empty dataset sequence set - NO VECTOR");\r
+      return false;\r
+    }\r
     Enumeration e = dataset.getSequences().elements();\r
     while (e.hasMoreElements())\r
     {\r