5f032f4769aca06fedde822c0ccff089321369a4
braney
  Thu Jan 27 15:46:04 2022 -0800
stop passing in NULL for database in getChromAlias()

diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index d41af03..239e795 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -3618,31 +3618,31 @@
 
 if (! sameWord(otherDb, "seq"))
     {
     otherOrg = hOrganism(otherDb);
     }
 if (otherOrg == NULL)
     {
     /* use first word of chain label (count on org name as first word) */
     otherOrg = firstWordInLine(cloneString(tdb->shortLabel));
     }
 
 if (startsWith("big", tdb->type))
     {
     char *fileName = bbiNameFromSettingOrTable(tdb, conn, tdb->table);
     char *linkFileName = trackDbSetting(tdb, "linkDataUrl");
-    chain = chainLoadIdRangeHub(fileName, linkFileName, seqName, winStart, winEnd, atoi(item));
+    chain = chainLoadIdRangeHub(database, fileName, linkFileName, seqName, winStart, winEnd, atoi(item));
 
     if (!otherIsActive) // if this isn't a native database, check to see if it's a hub
         {
         struct trackHubGenome *genome = trackHubGetGenomeUndecorated(otherDb);
         if (genome)
             {
             otherIsActive = TRUE;
             otherDb = genome->name;
             }
         }
     }
 else
     {
     chain = chainLoadIdRange(database, tdb->table, seqName, winStart, winEnd, atoi(item));
     }