Index: trunk/magic/remove/src/warpedpixels.c
===================================================================
--- trunk/magic/remove/src/warpedpixels.c	(revision 20729)
+++ trunk/magic/remove/src/warpedpixels.c	(revision 20778)
@@ -9,8 +9,17 @@
 static int xRight(psPlane *pt, int y);
 
-void
+bool
 computeWarpedPixels(streakFiles *sf)
 {
+    bool status;
     pmConfig    *config = sf->config;
+
+    psArray *skycells = psMetadataLookupPtr(&status, config->arguments, "SKYCELLS");
+    if (skycells == NULL) {
+        return false;
+    }
+
+    int n = psArrayLength(skycells);
+
     psRegion     bounds = *pmChipPixels(sf->chip);
     
@@ -20,9 +29,4 @@
     sf->warpedPixels = psImageAlloc(width, height, PS_TYPE_U8);
     psImageInit(sf->warpedPixels, 0);
-
-    bool status;
-    psArray *skycells = psMetadataLookupPtr(&status, config->arguments, "SKYCELLS");
-
-    int n = psArrayLength(skycells);
 
     for (int i=0; i<n; i++) {
@@ -43,4 +47,5 @@
         psFitsClose(fits);
     }
+    return true;
 }
 
