c8fe24dffc3894a4832016750093533c68ca8388
kate
  Thu Jun 11 10:45:29 2020 -0700
Fix for trackUi crash when obsolete setting, dividers, is used improperly. Public hub Cotney tack rep_cf_segments had this issue. refs #25713

diff --git src/hg/lib/hui.c src/hg/lib/hui.c
index c4482a2..9fd8f3f 100644
--- src/hg/lib/hui.c
+++ src/hg/lib/hui.c
@@ -4930,31 +4930,31 @@
 			cType = cfgNone;
 		    }
 		}
 	    }
 	else if (slCount(subtrackRefList) < 2   // don't bother if there is a single subtrack
 	     && cfgTypeFromTdb(parentTdb,FALSE) != cfgNone) // but the composite is configurable.
 	    cType = cfgNone;
 	}
 
     if (sortOrder == NULL && !useDragAndDrop)
 	{
 	char **lastDivide = NULL;
 	dividers_t *dividers = dividersSettingGet(parentTdb);
 	if (dividers)
 	    lastDivide = needMem(sizeof(char*)*dividers->count);
-	if (divisionIfNeeded(lastDivide,dividers,membership) )
+	if (membership && divisionIfNeeded(lastDivide,dividers,membership) )
 	    colorIx = (colorIx == COLOR_BG_DEFAULT_IX ? COLOR_BG_ALTDEFAULT_IX
 						      : COLOR_BG_DEFAULT_IX);
 	dividersFree(&dividers);
 	}
 
     // Start the TR which must have an id that is directly related to the checkBox id
     char *id = checkBoxIdMakeForTrack(subtrack,membersForAll->members,membersForAll->dimMax,
 				      membership); // view is known tag
     printf("<TR valign='top' class='%s%s'",
 		colors[colorIx],(useDragAndDrop?" trDraggable":""));
     printf(" id=tr_%s%s>\n",id,(!visibleCB && !settings->displayAll?" style='display:none'":""));
 
     // Now the TD that holds the checkbox
     printf("<TD%s%s>",
 	   (enabledCB?"":" title='view is hidden'"),