6f8c0b12e680d6205ed80331ef89fa686f710195
max
  Thu Oct 30 16:36:55 2025 -0700
small group bar fix, refs #36610

diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index fd752f6b28b..1cad2982810 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -9720,31 +9720,31 @@
                         {
                         hPrintf("<a title='Link to documentation about this track hub, provided by the track hub authors (not UCSC). ");
                         if (hub->email)
                             hPrintf("The authors can be reached at %s", hub->email);
                         hPrintf("' href='%s' "
                             "style='color:#FFF; font-size: 13px;' target=_blank>Info</a>", hub->descriptionUrl);
                         }
                     hPrintf("&nbsp;&nbsp;");
                     }
                 }
 
             hPrintf("<button type='button' class=\"hgtButtonHideGroup\" data-group-name=\"%s\" "
                     "title='Hide all tracks in this group'>Hide group</button>&nbsp;",
                     group->name);
 
-            if (hubName)
+            if (hub)
                 {
 		safef(idText, sizeof idText, "%s_%d_disconn", hubName, disconCount);
                 disconCount++;
                 hPrintf("<input name=\"hubDisconnectButton\" title='Disconnect third-party track hub and remove all tracks' "
                         "id='%s'"
                     " type=\"button\" value=\"Disconnect\">\n", idText);
 		jsOnEventByIdF("click", idText,
                     "document.disconnectHubForm.elements['hubId'].value='%s';"
                     "document.disconnectHubForm.submit();return true;",
 		    hubName + strlen(hubTrackPrefix));
 
 #ifdef GRAPH_BUTTON_ON_QUICKLIFT
 		safef(idText, sizeof idText, "%s_%d_graph", hubName, graphCount);
                 graphCount++;
                 hPrintf("<input name=\"graphButton\" id='%s'"