Index: trunk/psLib/src/collections/psArray.c
===================================================================
--- trunk/psLib/src/collections/psArray.c	(revision 2836)
+++ trunk/psLib/src/collections/psArray.c	(revision 2855)
@@ -9,6 +9,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-12-28 01:48:05 $
+ *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-12-30 20:18:36 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -114,4 +114,9 @@
     psBool success = false;
 
+    if (psArr == NULL) {
+        psError(PS_ERR_BAD_PARAMETER_NULL, true,
+                PS_ERRORTEXT_psArray_ARRAY_NULL);
+        return false;
+    }
 
     psS32 n = psArr->n;
Index: trunk/psLib/src/collections/psCollectionsErrors.dat
===================================================================
--- trunk/psLib/src/collections/psCollectionsErrors.dat	(revision 2836)
+++ trunk/psLib/src/collections/psCollectionsErrors.dat	(revision 2855)
@@ -9,4 +9,5 @@
 #
 psArray_REALLOC_NULL                   psArrayRealloc must be given a non-NULL psArray to resize.
+psArray_ARRAY_NULL                     Specified psArray can not be NULL.
 #
 psVector_REALLOC_NULL                  psVectorRealloc must a given a non-NULL psVector to resize.  Desired datatype unknown.
@@ -36,5 +37,5 @@
 psList_ITERATOR_INVALID                Specified iterator is not valid.
 psList_ITERATOR_NULL                   Specified iterator is NULL.
-psList_LIST_NULL                       Specified psList reference is NULL. 
+psList_LIST_NULL                       Specified psList reference is NULL.
 psList_DATA_NULL                       Specified data item is NULL.
 psList_DATA_NOT_FOUND                  Specified data item is not found in the psList.
Index: trunk/psLib/src/collections/psCollectionsErrors.h
===================================================================
--- trunk/psLib/src/collections/psCollectionsErrors.h	(revision 2836)
+++ trunk/psLib/src/collections/psCollectionsErrors.h	(revision 2855)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-12-10 02:50:14 $
+ *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-12-30 20:18:36 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -31,4 +31,5 @@
 //~Start #define PS_ERRORTEXT_$1 "$2"
 #define PS_ERRORTEXT_psArray_REALLOC_NULL "psArrayRealloc must be given a non-NULL psArray to resize."
+#define PS_ERRORTEXT_psArray_ARRAY_NULL "Specified psArray can not be NULL."
 #define PS_ERRORTEXT_psVector_REALLOC_NULL "psVectorRealloc must a given a non-NULL psVector to resize.  Desired datatype unknown."
 #define PS_ERRORTEXT_psVector_NOT_A_VECTOR "The input psVector must have a vector dimension type."
@@ -53,5 +54,5 @@
 #define PS_ERRORTEXT_psList_ITERATOR_INVALID "Specified iterator is not valid."
 #define PS_ERRORTEXT_psList_ITERATOR_NULL "Specified iterator is NULL."
-#define PS_ERRORTEXT_psList_LIST_NULL "Specified psList reference is NULL. "
+#define PS_ERRORTEXT_psList_LIST_NULL "Specified psList reference is NULL."
 #define PS_ERRORTEXT_psList_DATA_NULL "Specified data item is NULL."
 #define PS_ERRORTEXT_psList_DATA_NOT_FOUND "Specified data item is not found in the psList."
