src/hg/gsid/gsidTable/gsidTable.c 1.46

1.46 2009/09/17 18:34:57 fanhsu
Added logic to check NULL for string cols.
Index: src/hg/gsid/gsidTable/gsidTable.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/gsid/gsidTable/gsidTable.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -b -B -U 4 -r1.45 -r1.46
--- src/hg/gsid/gsidTable/gsidTable.c	17 Sep 2009 17:09:24 -0000	1.45
+++ src/hg/gsid/gsidTable/gsidTable.c	17 Sep 2009 18:34:57 -0000	1.46
@@ -923,8 +923,12 @@
 if ((answer == NULL) && sameWord(col->type, "integer"))
     {
     return(cloneString("-1"));
     }
+else if ((answer == NULL) && sameWord(col->type, "string"))
+    {
+    return(cloneString("N/A"));
+    }
 else 
     {
     return answer;
     }