JAL-2245 checks for null added (in case EMBL fetch finds nothing)
[jalview.git] / src / jalview / datamodel / xdb / embl / EmblFile.java
index 69870b6..a95f6e5 100644 (file)
@@ -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)