e8f2f6e391ee65e96e0a99e9a840f55db59bdb60
angie
  Fri Jun 5 15:34:13 2026 -0700
Fixing more bugs found by Claude when Chris ran it.

diff --git src/hg/hgPhyloPlace/phyloPlace.c src/hg/hgPhyloPlace/phyloPlace.c
index c12f47b7476..950596bd943 100644
--- src/hg/hgPhyloPlace/phyloPlace.c
+++ src/hg/hgPhyloPlace/phyloPlace.c
@@ -2302,30 +2302,32 @@
     "rgb(217, 173, 61)",
     "rgb(229, 150, 55)",
     "rgb(96, 170, 158)",
     "rgb(223, 67, 39)",
     "rgb(170, 189, 82)",
     "rgb(96, 170, 158)",
     "rgb(196, 185, 69)",
     "rgb(117, 182, 129)",
     "rgb(80, 151, 186)",
 };
 
 static void inlineRecombinantData(struct recombinantInfo *recombinants, struct hash *descendants, struct slName *sampleIds,
                                   int genomeSize, struct geneInfo *geneInfoList)
 /* Write out inline javascript with data used to draw recombinant graph in popup when button is clicked. */
 {
+if (! recombinants->recombMutations)
+    return;
 struct dyString *dy = dyStringNew(4096 * slCount(recombinants));
 dyStringPrintf(dy, "var recombinantData = { genomeSize: %d,\n  genes: [\n    ", genomeSize);
 int gIx;
 struct geneInfo *gi;
 for (gi = geneInfoList, gIx = 0;  gi != NULL;  gi = gi->next, gIx++)
     {
     if (gi != geneInfoList)
         dyStringAppend(dy, ",\n    ");
     dyStringPrintf(dy, "{ name: '%s', start: %d, end: %d, color: '%s' }",
                    gi->psl->qName, gi->psl->tStart, gi->psl->tEnd,
                    nextstrainColors10[gIx % ArraySize(nextstrainColors10)]);
     }
 dyStringAppend(dy, "  ],\n  recombinants: [    \n");
 struct dyString *dyRNodeId = dyStringNew(0);
 struct recombinantInfo *ri;