Index: trunk/ppImage/src/ppImageParseCamera.c
===================================================================
--- trunk/ppImage/src/ppImageParseCamera.c	(revision 42382)
+++ trunk/ppImage/src/ppImageParseCamera.c	(revision 43038)
@@ -117,4 +117,15 @@
 	if (!ppImageDefineFile(config, input->fpa, "PPIMAGE.NEWNONLIN", "NEWNONLIN",
 			       PM_FPA_FILE_NEWNONLIN, PM_DETREND_TYPE_NEWNONLIN)) {
+	    psError(PS_ERR_IO, false, "Can't find a new non-linearity correction source");
+	    psFree(options);
+	    return NULL;
+	}
+    }
+    if (options->doMaskBadOverscan) {
+	// if the file has been specified on the command-line (-valid-overscan file), then the file
+	// is identified by the VALID.OVERSCAN entry in config->arguments.  otherwise, load from the
+	// detrend system as type VALID.OVERSCAN
+	if (!ppImageDefineFile(config, input->fpa, "PPIMAGE.VALID.OVERSCAN", "VALID.OVERSCAN",
+			       PM_FPA_FILE_VALID_OVERSCAN, PM_DETREND_TYPE_VALID_OVERSCAN)) {
 	    psError(PS_ERR_IO, false, "Can't find a new non-linearity correction source");
 	    psFree(options);
