b9d3e953e1cea321da23a6898442ea0b08954c54 braney Mon May 3 14:32:59 2021 -0700 check for null hubStatus in trackHub structure diff --git src/hg/lib/hubConnect.c src/hg/lib/hubConnect.c index 18505fc..81e2bf3 100644 --- src/hg/lib/hubConnect.c +++ src/hg/lib/hubConnect.c @@ -870,31 +870,31 @@ return status->trackHub; } return NULL; } static unsigned lookForUndecoratedDb(char *name) // Look for this undecorated in the attached assembly hubs { struct trackHubGenome *genome = trackHubGetGenomeUndecorated(name); if (genome == NULL) return FALSE; struct trackHub *trackHub = genome->trackHub; -if (trackHub != NULL) +if ((trackHub != NULL) && (trackHub->hubStatus != NULL)) return trackHub->hubStatus->id; return 0; } static boolean lookForLonelyHubs(struct cart *cart, struct hubConnectStatus *hubList, char **newDatabase, char *genarkPrefix) // We go through the hubs and see if any of them reference an assembly // that is NOT currently loaded, but we know a URL to load it. { struct sqlConnection *conn = hConnectCentral(); boolean added = FALSE; struct hubConnectStatus *hub; for(hub = hubList; hub; hub = hub->next) { struct trackHub *tHub = hub->trackHub;