Index: /branches/eam_rel9_p0/psModules/src/astrom/pmFPAWrite.c
===================================================================
--- /branches/eam_rel9_p0/psModules/src/astrom/pmFPAWrite.c	(revision 6400)
+++ /branches/eam_rel9_p0/psModules/src/astrom/pmFPAWrite.c	(revision 6401)
@@ -42,5 +42,5 @@
     for (int i = 0; i < chips->n; i++) {
         pmChip *chip = chips->data[i];  // The component chip
-        if (chip->exists && chip->process) {
+        if (chip && chip->exists && chip->process) {
             psTrace(__func__, 1, "Writing out chip %d...\n", i);
 
@@ -50,5 +50,5 @@
             for (int j = 0; j < cells->n; j++) {
                 pmCell *cell = cells->data[j]; // The component cell
-                if (cell->exists && cell->process) {
+                if (cell && cell->exists && cell->process) {
                     psTrace(__func__, 2, "Writing out cell, %d...\n", j);
 
