c7c1525e8eba2c94300290fd4c7806dea60df954
braney
  Tue Feb 13 10:49:34 2024 -0800
don't expect to find a bigDataUrl in a composite header

diff --git src/hg/hgTracks/bigBedTrack.c src/hg/hgTracks/bigBedTrack.c
index c4942f1..d84c5fe 100644
--- src/hg/hgTracks/bigBedTrack.c
+++ src/hg/hgTracks/bigBedTrack.c
@@ -824,28 +824,28 @@
 
 return 3; // if we can't get the bbi, use the minimum
 }
 
 void bigBedMethods(struct track *track, struct trackDb *tdb, 
                                 int wordCount, char *words[])
 /* Set up bigBed methods. */
 {
 char *newWords[wordCount];
 
 int ii;
 for(ii=0; ii < wordCount; ii++)
     newWords[ii] = words[ii];
 
 // let's help the user out and get the definedFieldCount if they didn't specify it on the type line
-if ((wordCount == 1) && sameString(words[0], "bigBed")) 
+if ((track->tdb->subtracks == NULL) && (wordCount == 1) && sameString(words[0], "bigBed")) 
     {
     int fieldCount = getFieldCount(track);
     if (fieldCount > 3) 
         {
         char buffer[1024];
         safef(buffer, sizeof buffer, "%d", fieldCount);
         newWords[1] = cloneString(buffer);
         wordCount = 2;
         }
     }
 complexBedMethods(track, tdb, TRUE, wordCount, newWords);
 }