JAL-3187 handle no mapping / complement features without NPE
[jalview.git] / src / jalview / datamodel / MappedFeatures.java
index b69a103..25f5ba4 100644 (file)
@@ -69,6 +69,10 @@ public class MappedFeatures
   public List<String> findProteinVariants()
   {
     List<String> vars = new ArrayList<>();
+    if (features.isEmpty())
+    {
+      return vars;
+    }
 
     /*
      * determine canonical codon