Index: /trunk/psLib/src/types/psHash.c
===================================================================
--- /trunk/psLib/src/types/psHash.c	(revision 12315)
+++ /trunk/psLib/src/types/psHash.c	(revision 12316)
@@ -12,6 +12,6 @@
 *  @author GLG, MHPCC
 *
-*  @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2007-03-08 19:55:46 $
+*  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2007-03-08 19:58:37 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -232,4 +232,8 @@
     assert(table->n >= 0);
     assert(key && strlen(key) > 0);
+
+    if (table->n == 0) {
+        return NULL;
+    }
 
     // This hash algorithm is from Sedgewick.  NOTE: must reread to ensure that
