git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
JAL-2245 checks for null added (in case EMBL fetch finds nothing)
[jalview.git]
/
src
/
jalview
/
datamodel
/
xdb
/
embl
/
EmblFile.java
diff --git
a/src/jalview/datamodel/xdb/embl/EmblFile.java
b/src/jalview/datamodel/xdb/embl/EmblFile.java
index
69870b6
..
a95f6e5
100644
(file)
--- a/
src/jalview/datamodel/xdb/embl/EmblFile.java
+++ b/
src/jalview/datamodel/xdb/embl/EmblFile.java
@@
-152,6
+152,10
@@
public class EmblFile
*/
static void canonicaliseDbRefs(EmblFile record)
{
+ if (record.getEntries() == null)
+ {
+ return;
+ }
for (EmblEntry entry : record.getEntries())
{
if (entry.getDbRefs() != null)