Index: trunk/psastro/src/psastroZeroPoint.c
===================================================================
--- trunk/psastro/src/psastroZeroPoint.c	(revision 26394)
+++ trunk/psastro/src/psastroZeroPoint.c	(revision 26558)
@@ -147,5 +147,5 @@
 
     // XXX make this depend on the mode?
-    if (dMag->n < 3) {
+    if (!dMag || dMag->n < 3) {
       fprintf (stderr, "zero point NaN +/- NaN\n");
       return false;
