Index: trunk/psLib/test/astro/tst_psEarthOrientation.c
===================================================================
--- trunk/psLib/test/astro/tst_psEarthOrientation.c	(revision 5446)
+++ trunk/psLib/test/astro/tst_psEarthOrientation.c	(revision 5447)
@@ -6,6 +6,6 @@
 *  @author d-Rob, MHPCC
 *
-*  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2005-10-26 01:20:15 $
+*  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2005-10-27 20:38:19 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -59,4 +59,5 @@
     psSphere *apparent = psSphereAlloc();
     psSphere *sun = psSphereAlloc();
+    psSphere *empty = NULL;
 
     sun->r = 0.2;
@@ -65,5 +66,19 @@
     apparent->d = 0.2035;
 
-    actual = psGravityDeflection(apparent, actual, sun);
+    empty = psGravityDeflection(empty, actual, sun);
+    if (empty != NULL) {
+        psError(PS_ERR_BAD_PARAMETER_NULL, true,
+                "psGravityDeflection Failed to return NULL for NULL apparent input sphere.\n");
+        return 1;
+    }
+    empty = psGravityDeflection(empty, apparent, actual);
+    if (empty != NULL) {
+        psError(PS_ERR_BAD_PARAMETER_NULL, true,
+                "psGravityDeflection Failed to return NULL for NULL sun input sphere.\n");
+        return 2;
+    }
+
+
+    actual = psGravityDeflection(actual, apparent, sun);
     psSphere *result = psSphereSetOffset(apparent, actual, PS_SPHERICAL, PS_RADIAN);
     printf("\nApparent r,d = %.13g,%.13g    Actual r,d = %.13g, %.13g \n",
