From 6906bad46d9a65df68c979fc2afe7a1c73cbcec5 Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 1 Aug 2007 16:25:34 +0000 Subject: [PATCH] null pointer exception bug fix --- src/jalview/analysis/CrossRef.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/jalview/analysis/CrossRef.java b/src/jalview/analysis/CrossRef.java index 9e99c7c..f475ecb 100644 --- a/src/jalview/analysis/CrossRef.java +++ b/src/jalview/analysis/CrossRef.java @@ -377,8 +377,13 @@ public class CrossRef AlignmentI dataset, Vector rseqs, AlignedCodonFrame cf, boolean direct, boolean dna) { boolean found = false; - if (dataset==null) + if (dataset==null) return false; + if (dataset.getSequences()==null) + { + System.err.println("Empty dataset sequence set - NO VECTOR"); + return false; + } Enumeration e = dataset.getSequences().elements(); while (e.hasMoreElements()) { -- 1.7.10.2