JAL-2598 Sequence.getSequence return a copy of the char array
[jalview.git] / src / jalview / analysis / AAFrequency.java
index b806355..a792d24 100755 (executable)
@@ -151,10 +151,9 @@ public class AAFrequency
                   .println("WARNING: Consensus skipping null sequence - possible race condition.");
           continue;
         }
-        char[] seq = sequences[row].getSequence();
-        if (seq.length > column)
+        if (sequences[row].getLength() > column)
         {
-          char c = seq[column];
+          char c = sequences[row].getCharAt(column);
           residueCounts.add(c);
           if (Comparison.isNucleotide(c))
           {