JAL-3111 don’t reuse old array that might have alignment db sources in it
authorJim Procter <jprocter@issues.jalview.org>
Thu, 20 Sep 2018 15:38:03 +0000 (16:38 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 20 Sep 2018 15:38:03 +0000 (16:38 +0100)
src/jalview/ws/SequenceFetcher.java

index 29d4ec7..adaed60 100644 (file)
@@ -96,6 +96,7 @@ public class SequenceFetcher extends ASequenceFetcher
     jalview.util.QuickSort.sort(tosort, sorted);
     // construct array with all sources listed
     int i = 0;
+    srcs = new String[tosort.length];
     for (int j = sorted.length - 1; j >= 0; j--, i++)
     {
       srcs[i] = sorted[j];