f38c6808e55c7a6f064085b8baea35c0526790fb
max
  Tue Oct 24 04:52:07 2023 -0700
fixing null pointer crash, thanks to braney and chmalee, refs #32499

diff --git src/hg/hgTables/hgTables.c src/hg/hgTables/hgTables.c
index af37fcc..2ed8bc9 100644
--- src/hg/hgTables/hgTables.c
+++ src/hg/hgTables/hgTables.c
@@ -225,30 +225,32 @@
 }
 
 char *getScriptName()
 /* returns script name from environment or hardcoded for command line */
 {
 char *script = cgiScriptName();
 if (script != NULL)
     return script;
 else
     return hgTablesName();
 }
 
 void printDownloadLink(char *typeLabel, char *fileName)
 /* print a link to the file, so the user can download it right here */
 {
+if (fileName==NULL)
+    return;
 char *downPrefix = "";
 if (startsWith("/gbdb", fileName))
     downPrefix = "https://hgdownload.soe.ucsc.edu";
 
 hPrintf("<B>%s File Download:</B> <A HREF='%s%s'>%s</A>", typeLabel, downPrefix, fileName, fileName);
 }
 
 boolean printTypeHelpDesc(char *type)
 /* print a little link to our help docs given a track type. Return true if file type is a big* file format. */
 {
 boolean isBig = FALSE;
 
 if (startsWith("vcf", type))
     {
     hPrintf("See the <A HREF=\"%s\" target=_blank>Variant Call Format specification</A> for  more details<BR>\n",