Index: /trunk/psLib/test/image/tst_psImageStats02.c
===================================================================
--- /trunk/psLib/test/image/tst_psImageStats02.c	(revision 1953)
+++ /trunk/psLib/test/image/tst_psImageStats02.c	(revision 1954)
@@ -25,4 +25,5 @@
     psImage *tmpImage = NULL;
     psImage *outImage = NULL;
+    psImage *nullImage = NULL;
     psPolynomial2D *my2DPoly = NULL;
     psPolynomial2D *null2DPoly = NULL;
@@ -102,4 +103,18 @@
     }
 
+
+    psLogMsg(__func__,PS_LOG_INFO,"Following should be an error message for NULL coeffs argument.");
+    nullImage = psImageEvalPolynomial( outImage, NULL );
+    if ( nullImage != NULL ) {
+        printf("ERROR: psImageEvalPolynomial did not return NULL with invalid coeffs argument.");
+    }
+
+    psLogMsg(__func__,PS_LOG_INFO,"Following should be a error message for NULL input argument.");
+    nullImage = psImageEvalPolynomial( NULL, my2DPoly );
+    if ( nullImage != NULL ) {
+        printf("ERROR: psImageEvalPolynomial did not return NULL with null input image.");
+    }
+
+
     psMemCheckCorruption( 1 );
     printFooter( stdout,
Index: /trunk/psLib/test/image/verified/tst_psImageStats02.stderr
===================================================================
--- /trunk/psLib/test/image/verified/tst_psImageStats02.stderr	(revision 1953)
+++ /trunk/psLib/test/image/verified/tst_psImageStats02.stderr	(revision 1954)
@@ -7,2 +7,10 @@
 <DATE><TIME>|<HOST>|E|psLib.image.psImageFitPolynomial
     Can not operate on a NULL psImage.
+<DATE><TIME>|<HOST>|I|main
+    Following should be an error message for NULL coeffs argument.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageEvalPolynomial
+    Polynomial coefficients cannot be NULL. 
+<DATE><TIME>|<HOST>|I|main
+    Following should be a error message for NULL input argument.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageEvalPolynomial
+    Can not operate on a NULL psImage.
