Index: trunk/psLib/src/types/psLookupTable.c
===================================================================
--- trunk/psLib/src/types/psLookupTable.c	(revision 9743)
+++ trunk/psLib/src/types/psLookupTable.c	(revision 9745)
@@ -7,6 +7,6 @@
 *  @author Ross Harman, MHPCC
 *
-*  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-10-24 22:52:56 $
+*  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-10-25 04:58:38 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
@@ -564,4 +564,13 @@
                             return NULL;
                         }
+                    }
+                    if (strValue != NULL && strNum == NULL) {
+                        psError(PS_ERR_UNKNOWN, true,
+                                "Parsing text file failed - missing table value(s).");
+                        fclose(fp);
+                        psFree(outputArray);
+                        psFree(line);
+                        psFree(strValue);
+                        return NULL;
                     }
                 }  // ignore line
Index: trunk/psLib/test/types/tap_psLookupTable_all.c
===================================================================
--- trunk/psLib/test/types/tap_psLookupTable_all.c	(revision 9743)
+++ trunk/psLib/test/types/tap_psLookupTable_all.c	(revision 9745)
@@ -24,5 +24,5 @@
 int main(void)
 {
-    plan_tests(27);
+    plan_tests(28);
 
     diag("Tests for psLookupTable Functions");
@@ -149,4 +149,12 @@
             "psVectorsReadFromFile:           return NULL for empty table.");
     }
+    // Attempt to read from file with partially constructed row
+    {
+        outVec = psVectorsReadFromFile("table3.dat",
+                                       "\%f \%d \%d \%ld \%d \%d \%d \%ld \%*d \%lf");
+        ok( outVec == NULL,
+            "psVectorsReadFromFile:           return NULL for table with partially"
+            " constructed row.");
+    }
     //Attempt to read with valid inputs
     {
