a75cfac22803c312074299aa0dcf286ca336ce89
braney
  Wed Aug 27 13:28:08 2025 -0700
ongoing work on quickLift hgc page plus a fix for genepreds that don't
successfully quickLift

diff --git src/hg/hgGene/hgGene.c src/hg/hgGene/hgGene.c
index 242431a5256..f8dadd46327 100644
--- src/hg/hgGene/hgGene.c
+++ src/hg/hgGene/hgGene.c
@@ -732,30 +732,32 @@
 int start = atoi(cartString(cart, hggStart));
 int end = atoi(cartString(cart, hggEnd));
 char *quickLiftFile = cloneString(trackDbSetting(tdb, "quickLiftUrl"));
 char *linkFileName = bigChainGetLinkFile(quickLiftFile);
 struct hash *chainHash = newHash(8);
 
 struct chain *chain, *chainList = chainLoadIdRangeHub(NULL, quickLiftFile, linkFileName, chrom, start, end, -1);
 for(chain = chainList; chain; chain = chain->next)
     {
     chainSwap(chain);
 
     liftOverAddChainHash(chainHash, chain);
     }
 calcLiftOverGenePreds( curGenePred, chainHash, 0.0, 1.0, TRUE, NULL, NULL,  TRUE, FALSE);
 curGeneChrom = curGenePred->chrom;
+if (curGenePred->chrom == NULL)
+    errAbort("Failed to quickLift %s", curGenePred->name);
 curGeneStart = curGenePred->txStart;
 curGeneEnd = curGenePred->txEnd;
 }
 
 void cartMain(struct cart *theCart)
 /* We got the persistent/CGI variable cart.  Now
  * set up the globals and make a web page. */
 {
 if (issueBotWarning)
     {
     char *ip = getenv("REMOTE_ADDR");
     botDelayMessage(ip, botDelayMillis);
     }
 cart = theCart;
 getDbAndGenome(cart, &database, &genome, oldVars);