Index: trunk/psastro/src/psastroLoadRefstars.c
===================================================================
--- trunk/psastro/src/psastroLoadRefstars.c	(revision 12492)
+++ trunk/psastro/src/psastroLoadRefstars.c	(revision 12536)
@@ -83,4 +83,10 @@
 
     unlink (tempFile);
+
+    if (table == NULL) {
+	psError(PSASTRO_ERR_REFSTARS, true, "failure to load astrometric reference\n");
+        return NULL;
+    }
+
     psLogMsg ("psastro", 3, "read getstar output table : %f sec\n", psTimerMark ("psastro"));
 
