5cedb50e1dadbb9458af75635eb78dbd65db730c
braney
  Tue Jan 14 12:26:55 2025 -0800
don't crash if a hub track doesn't have a bigDataUrl   refs #34954

diff --git src/hg/lib/hubConnect.c src/hg/lib/hubConnect.c
index 327a597..dbfe6bd 100644
--- src/hg/lib/hubConnect.c
+++ src/hg/lib/hubConnect.c
@@ -1083,30 +1083,32 @@
 struct trackHub *hubConnectGetHub(char *hubUrl)
 /* Return the connected hub for hubUrl, or NULL if not found.  Do not free result. */
 {
 struct hubConnectStatus *status;
 for (status = globalHubList;  status != NULL;  status = status->next)
     {
     if (sameString(status->hubUrl, hubUrl))
         return status->trackHub;
     }
 return NULL;
 }
 
 struct trackHub *hubConnectGetHubForDb(char *db)
 /* Return the connected hub for db, or NULL if not found.  Do not free result. */
 {
+if (!startsWith("hub_", db))
+    return NULL;
 unsigned hubId = hubIdFromTrackName(db);
 struct hubConnectStatus *status;
 for (status = globalHubList;  status != NULL;  status = status->next)
     {
     if (status->id == hubId)
         return status->trackHub;
     }
 return NULL;
 }
 
 static unsigned lookForUndecoratedDb(char *name)
 // Look for this undecorated in the attached assembly hubs
 {
 struct trackHubGenome *genome = trackHubGetGenomeUndecorated(name);