JAL-2245 checks for null added (in case EMBL fetch finds nothing)
[jalview.git] / src / jalview / ws / dbsources / EmblXmlSource.java
index 2049766..f672e8b 100644 (file)
@@ -103,7 +103,7 @@ public abstract class EmblXmlSource extends EbiFileRetrievedProxy
     }
 
     List<SequenceI> peptides = new ArrayList<SequenceI>();
-    if (efile != null)
+    if (efile != null && efile.getEntries() != null)
     {
       for (EmblEntry entry : efile.getEntries())
       {