Index: trunk/psLib/src/db/psDB.c
===================================================================
--- trunk/psLib/src/db/psDB.c	(revision 4371)
+++ trunk/psLib/src/db/psDB.c	(revision 4373)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-06-24 01:45:09 $
+ *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-06-24 02:09:23 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -651,4 +651,16 @@
     unsigned int    i;
     psPtr           column;
+
+    // Verify database object is not null
+    if(dbh == NULL) {
+        psError(PS_ERR_UNEXPECTED_NULL,true,PS_ERRORTEXT_psDB_INVALID_PSDB);
+        return NULL;
+    }
+
+    // Verify table name is not null
+    if(tableName == NULL) {
+        psError(PS_ERR_UNEXPECTED_NULL,true,PS_ERRORTEXT_psDB_NULL_TABLE);
+        return NULL;
+    }
 
     // find column types
