src/hg/lib/hgFind.c 1.231
1.231 2010/05/31 22:42:33 markd
avoid segv on bad table in search
Index: src/hg/lib/hgFind.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hgFind.c,v
retrieving revision 1.230
retrieving revision 1.231
diff -b -B -U 4 -r1.230 -r1.231
--- src/hg/lib/hgFind.c 19 May 2010 20:46:09 -0000 1.230
+++ src/hg/lib/hgFind.c 31 May 2010 22:42:33 -0000 1.231
@@ -2401,8 +2401,10 @@
if (table->posList != NULL)
{
char *parent = hGetParent(db, table->name);
char *trackName = hGetTrackForTable(db, table->name);
+ if (trackName == NULL)
+ errAbort("no track for table \"%s\" found via a findSpec", table->name); // wish we had searchName
char *vis = hCarefulTrackOpenVis(db, trackName);
boolean excludeTable = FALSE;
if (table->htmlStart)
table->htmlStart(table, f);