Index: branches/pap/magic/remove/src/streaksremove.c
===================================================================
--- branches/pap/magic/remove/src/streaksremove.c	(revision 28179)
+++ branches/pap/magic/remove/src/streaksremove.c	(revision 28484)
@@ -940,4 +940,8 @@
 
         psArray *inTable = psFitsReadTable(in->fits);
+        if (!inTable) {
+            psErrorStackPrint(stderr, "failed to read tablle in %s", in->resolved_name);
+            streaksExit("", PS_EXIT_DATA_ERROR);
+        }
         if (!inTable->n) {
             psErrorStackPrint(stderr, "table in %s is empty", in->resolved_name);
