Index: trunk/psphot/src/psphotOutput.c
===================================================================
--- trunk/psphot/src/psphotOutput.c	(revision 12546)
+++ trunk/psphot/src/psphotOutput.c	(revision 12601)
@@ -81,10 +81,9 @@
 
     pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PSPHOT.INPUT");
-    assert (status);
+    PS_ASSERT (status, false);
 
     // determine PHOTCODE from fpa & view, overwrite in recipe
-    // XXX test this:
     char *photcode = pmConceptsPhotcodeForView (config, input, view);
-    assert (photcode);
+    PS_ASSERT (photcode, false);
 
     psMetadataAddStr (recipe, PS_LIST_TAIL, "PHOTCODE", PS_META_REPLACE, "photcode from FPA concepts", photcode);
