JAL-4091 JAL-629 ‘Add Reference Annotations’ takes description into account when...
[jalview.git] / src / jalview / ws / datamodel / alphafold / PAEContactMatrix.java
index 87ccab6..3ce1c83 100644 (file)
@@ -222,17 +222,17 @@ public class PAEContactMatrix implements ContactMatrixI
   @Override
   public String getAnnotDescr()
   {
-    return "Predicted Alignment Error for " + refSeq.getName();
+    return "Predicted Alignment Error"+((refSeq==null) ? "" : (" for " + refSeq.getName()));
   }
 
   @Override
   public String getAnnotLabel()
   {
     StringBuilder label = new StringBuilder("PAE Matrix");
-    if (this.getReferenceSeq() != null)
-    {
-      label.append(":").append(this.getReferenceSeq().getDisplayId(false));
-    }
+    //if (this.getReferenceSeq() != null)
+    //{
+    //  label.append(":").append(this.getReferenceSeq().getDisplayId(false));
+    //}
     return label.toString();
   }