git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
202c28a
)
null pointer exception bug fix
author
jprocter
<Jim Procter>
Wed, 1 Aug 2007 16:25:34 +0000
(16:25 +0000)
committer
jprocter
<Jim Procter>
Wed, 1 Aug 2007 16:25:34 +0000
(16:25 +0000)
src/jalview/analysis/CrossRef.java
patch
|
blob
|
history
diff --git
a/src/jalview/analysis/CrossRef.java
b/src/jalview/analysis/CrossRef.java
index
9e99c7c
..
f475ecb
100644
(file)
--- 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)
\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