JAL-4124 matrix is saved in dataset, with forward references made from alignments
[jalview.git] / src / jalview / renderer / ContactMapRenderer.java
index 0471145..c5d4b14 100644 (file)
@@ -119,6 +119,10 @@ public abstract class ContactMapRenderer implements AnnotationRowRendererI
     int column;
     int aaMax = aa_annotations.length - 1;
     ContactMatrixI cm = viewport.getContactMatrix(_aa);
+    if (cm==null)
+    {
+      return;
+    }
     while (x < eRes - sRes)
     {
       column = sRes + x;