076d5f9df63dba1d913749ff8000f0c81d0af1a6
markd
  Thu Feb 27 16:24:43 2025 -0800
fix problem in previous change of asswer because I didn't teat with the right track

diff --git src/hg/hgTables/bigWig.c src/hg/hgTables/bigWig.c
index 8d973c001c9..9f555f92b20 100644
--- src/hg/hgTables/bigWig.c
+++ src/hg/hgTables/bigWig.c
@@ -51,31 +51,32 @@
 /* If table is a custom track or hub track, return a setting;
  * otherwise return NULL.  Do a freeMem on returned string when done. */
 {
 char *settingVal = NULL;
 if (isCustomTrack(table))
     {
     struct customTrack *ct = ctLookupName(table);
     if (ct != NULL)
         settingVal = cloneString(trackDbSetting(ct->tdb, settingName));
     }
 else
     {
     struct trackDb *tdb = hashFindVal(fullTableToTdbHash, table);
     assert(tdb != NULL);
     settingVal = cloneString(trackDbSetting(tdb, settingName));
-    if (mustBeInHub && isHubTrack(table))   // if it's a native track, we'll assume it has a table with the name
+    // if it's a native track, we'll assume it has a table with the name
+    if (mustBeInHub && isHubTrack(table) && (settingVal == NULL))
         errAbort("BUG: hub track '%s' must have setting '%s'", table, settingName);
     }
 return settingVal;
 }
 
 char *bigFileNameFromCtOrHub(char *table, struct sqlConnection *conn)
 /* If table is a custom track or hub track, return the bigDataUrl setting;
  * otherwise return NULL.  Do a freeMem on returned string when done. */
 {
 return settingFromCtOrHub(table, conn, "bigDataUrl", TRUE);
 }
 
 char *bigDataIndexFromCtOrHub(char *table, struct sqlConnection *conn)
 /* If table is a custom track or hub track, return the bigDataIndex setting;
  * otherwise return NULL.  Do a freeMem on returned string when done. */