JAL-3567 unit tests for linked feature tooltips
[jalview.git] / src / jalview / io / SequenceAnnotationReport.java
index 8328e7a..27c1652 100644 (file)
@@ -216,6 +216,11 @@ public class SequenceAnnotationReport
     {
       beginRange = mf.getMappedPositions(begin, begin);
       endRange = mf.getMappedPositions(end, end);
+      if (beginRange == null || endRange == null)
+      {
+        // something went wrong
+        return false;
+      }
       begin = beginRange[0];
       end = endRange[endRange.length - 1];
     }