src/hg/instinct/lib/featuresLib.c 1.33
1.33 2010/05/07 05:40:48 jsanborn
fixed bugs
Index: src/hg/instinct/lib/featuresLib.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/lib/featuresLib.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -b -B -U 4 -r1.32 -r1.33
--- src/hg/instinct/lib/featuresLib.c 6 May 2010 18:42:07 -0000 1.32
+++ src/hg/instinct/lib/featuresLib.c 7 May 2010 05:40:48 -0000 1.33
@@ -312,10 +312,12 @@
/* Get all values in field in a table defined by col->table, col->keyField,
* col->valField. If an xrefLookup is specified in col->settings,
* use that to look up an alternate name for the result. */
{
-struct slName *id;
+if (!idList)
+ return NULL;
+struct slName *id;
char query[512];
safef(query, sizeof(query), "select %s, %s from %s;",
col->keyField, col->valField, col->table);