X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAlignmentAnnotation.java;h=6dcf23b1bb1efde6d5478a5cfaa72094326e85e6;hb=f3349bc9021e8ef27cf56dd7bc8417f1762f31e3;hp=6803e9f0be97f3d0bdbf5c9565504a899b30a626;hpb=714af52b3db1dfa2420b0782ef64248b7404adf9;p=jalview.git diff --git a/src/jalview/datamodel/AlignmentAnnotation.java b/src/jalview/datamodel/AlignmentAnnotation.java index 6803e9f..6dcf23b 100755 --- a/src/jalview/datamodel/AlignmentAnnotation.java +++ b/src/jalview/datamodel/AlignmentAnnotation.java @@ -31,7 +31,7 @@ public class AlignmentAnnotation * eg consensus, quality or conservation graphs */ public boolean autoCalculated = false; - public String annotationId = Math.random() +""; + public String annotationId; public SequenceI sequenceRef; @@ -160,6 +160,7 @@ public class AlignmentAnnotation } + annotationId = this.hashCode()+""; } /** @@ -293,9 +294,11 @@ public class AlignmentAnnotation int startRes, boolean alreadyMapped) { + if(seqRef == null) return; + sequenceMapping = new java.util.Hashtable(); sequenceRef = seqRef; @@ -314,7 +317,6 @@ public class AlignmentAnnotation } } - adjustForAlignment(); } public void adjustForAlignment()