Index: /tags/ipp-20140114/psphot/src/psphotStackReadout.c
===================================================================
--- /tags/ipp-20140114/psphot/src/psphotStackReadout.c	(revision 36539)
+++ /tags/ipp-20140114/psphot/src/psphotStackReadout.c	(revision 36540)
@@ -391,5 +391,8 @@
 
 		// re-measure the PSF for the smoothed image (using entries in 'allSources')
-		psphotChoosePSF (config, view, STACK_OUT, false);
+		if (!psphotChoosePSF (config, view, STACK_OUT, false)) {
+                    psLogMsg ("psphot", 3, "failure to construct a psf model in radial aperture loop for entry :%d", entry);
+                    return psphotReadoutCleanup (config, view, STACK_RAW);
+                }
 
 		// this is necessary to update the models based on the new PSF
