Index: /trunk/psphot/src/psphotVisual.c
===================================================================
--- /trunk/psphot/src/psphotVisual.c	(revision 20003)
+++ /trunk/psphot/src/psphotVisual.c	(revision 20004)
@@ -712,4 +712,5 @@
 	    // create modelPSF from this model
 	    pmModel *model = pmModelFromPSF (modelRef, psf);
+	    if (!model) continue;
 
 	    // place the reference object in the image center
