debugged mappings and translated sequence recovery
[jalview.git] / src / jalview / datamodel / xdb / embl / EmblFeatureLocations.java
index a9fe76e..0341ec3 100644 (file)
@@ -78,7 +78,7 @@ public class EmblFeatureLocations {
               }
             }
         }
-    }
+    } else 
     if (locationType.equalsIgnoreCase("join")) {
         for (Enumeration le=locElements.elements();le.hasMoreElements();) {
           EmblFeatureLocElement loce = (EmblFeatureLocElement) le.nextElement();
@@ -92,10 +92,13 @@ public class EmblFeatureLocations {
           }
         }
         return se;
-    }
+    } else
     if (locationType!=null)
     {
-      jalview.bin.Cache.log.error("EmbleFeatureLocations.getElementRanges cannot deal with locationType=='"+locationType+"'");
+      if (jalview.bin.Cache.log!=null)
+        jalview.bin.Cache.log.error("EmbleFeatureLocations.getElementRanges cannot deal with locationType=='"+locationType+"'");
+      else
+        System.err.println("EmbleFeatureLocations.getElementRanges cannot deal with locationType=='"+locationType+"'");
     }
     // trim range if necessary.
     if (se!=null && sepos!=se.length)