src/hg/hgTables/joining.c 1.56
1.56 2009/06/17 18:54:50 angie
Added NULL check -- this can happen when a trackDb setting specifies a table that isn't properly linked in all.joiner.
Index: src/hg/hgTables/joining.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/joining.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -b -B -U 4 -r1.55 -r1.56
--- src/hg/hgTables/joining.c 29 May 2009 22:07:01 -0000 1.55
+++ src/hg/hgTables/joining.c 17 Jun 2009 18:54:50 -0000 1.56
@@ -823,8 +823,10 @@
}
orderTables(&tjList, primaryDb, primaryTable);
tableDtfs = tableToDtfs(tjList);
routeList = joinerFindRouteThroughAll(joiner, tableDtfs);
+if (routeList == NULL)
+ errAbort("Can't find route from %s to %s via all.joiner", primaryTable, tjList->next->table);
addOutKeys(tableHash, routeList, &tjList);
/* If first table is non-positional then it will lead to a lot
* of n/a's in later fields unless we treat the genome-wide. */