Index: /branches/eam_branches/ipp-20230313/psphot/src/psphotVisual.c
===================================================================
--- /branches/eam_branches/ipp-20230313/psphot/src/psphotVisual.c	(revision 42706)
+++ /branches/eam_branches/ipp-20230313/psphot/src/psphotVisual.c	(revision 42707)
@@ -298,4 +298,5 @@
     bool status = false;
     pmFPAfile *file = psMetadataLookupPtr (&status, config->files, "PSPHOT.BACKGND");
+    if (!file) return false;
 
     pmReadout *backgnd = READOUT_OR_INTERNAL(view, file);
@@ -394,4 +395,5 @@
 
     psArray *peaks = detections->peaks;
+    if (!peaks) return false;
 
     // note: this uses the Ohana allocation tools:
