Index: /branches/eam_rel9_b1/psLib/src/db/psDB.c
===================================================================
--- /branches/eam_rel9_b1/psLib/src/db/psDB.c	(revision 6158)
+++ /branches/eam_rel9_b1/psLib/src/db/psDB.c	(revision 6159)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.44.16.1 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-12-23 01:59:10 $
+ *  @version $Revision: 1.44.16.2 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-01-22 07:05:43 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -1258,5 +1258,6 @@
         } else if (item->type == PS_DATA_STRING) {
             // + column name + _ + like + _ + ' + value + '
-            if (*(char *)item->data.V == '\0') {
+            // check for NULL and empty ("") strings
+            if (item->data.V == NULL || *(char *)item->data.V == '\0') {
                 psStringAppend(&query, "%s IS NULL", item->name);
             } else {
