9945a7e7ff9e10eaf995ac84bdbf68e5e3799476
braney
  Thu Feb 16 07:37:38 2023 -0800
will I ever learn to check for NULL

diff --git src/hg/lib/customFactory.c src/hg/lib/customFactory.c
index 3108fda..91ac97d 100644
--- src/hg/lib/customFactory.c
+++ src/hg/lib/customFactory.c
@@ -4138,30 +4138,33 @@
     ++errCount;
     }
 for (pfd = pfdDone; pfd; pfd = pfd->next)
     {
     // some done tracks may have errors
     if (pfd->track->networkErrMsg)
         ++errCount;
     }
 pthread_mutex_unlock( &pfdMutex );
 return errCount;
 }
 
 boolean customFactoryParallelLoad(char *bdu, char *type)
 /* Is this a data type that should be loaded in parallel ? */
 {
+if ((type == NULL) || (bdu == NULL))
+    return FALSE;
+
 return (startsWith("big", type)
      || startsWithWord("mathWig"  , type)
      || startsWithWord("bam"     , type)
      || startsWithWord("halSnake", type)
      || startsWithWord("bigRmsk", type)
      || startsWithWord("bigLolly", type)
      || startsWithWord("vcfTabix", type))
      // XX code-review: shouldn't we error abort if the URL is not valid?
      && (bdu && isValidBigDataUrl(bdu, FALSE))
      && !(containsStringNoCase(bdu, "dl.dropboxusercontent.com"))
      && (!startsWith("bigInteract", type))
      && (!startsWith("bigMaf", type));
 }
 
 static struct customTrack *customFactoryParseOptionalDb(char *genomeDb, char *text,