Index: trunk/Ohana/src/opihi/dvo/cmpReadFile.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/cmpReadFile.c	(revision 27435)
+++ trunk/Ohana/src/opihi/dvo/cmpReadFile.c	(revision 29001)
@@ -20,4 +20,8 @@
 
   smpdata = gfits_table_get_SMPData (&table, &Nstars, NULL);
+  if (!smpdata) {
+    fprintf (stderr, "ERROR: failed to read stars\n");
+    exit (2);
+  }
 
   ALLOCATE (stars, CMPstars, Nstars);
