IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13939


Ignore:
Timestamp:
Jun 21, 2007, 2:13:55 PM (19 years ago)
Author:
eugene
Message:

handle missing images (null input data entries)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeCombine.c

    r13906 r13939  
    304304            for (int i = 0; i < filenames->n; i++) {
    305305                pmFPA *fpaIn = data->in->data[i]; // Input FPA
     306                if (!fpaIn) { continue; } // was not a valid input file
    306307                pmChip *chipIn = fpaIn->chips->data[view->chip]; // Input chip
    307308                pmCell *cellIn = chipIn->cells->data[view->cell]; // Input cell
     
    324325        for (int i = 0; i < filenames->n; i++) {
    325326            pmFPA *fpaIn = data->in->data[i]; // Input FPA
     327            if (!fpaIn) { continue; } // was not a valid input file
    326328            pmChip *chipIn = fpaIn->chips->data[view->chip]; // Input chip
    327329            pmChipFreeData(chipIn);
     
    343345    for (int i = 0; i < filenames->n; i++) {
    344346        pmFPA *fpaIn = data->in->data[i]; // Input FPA
     347        if (!fpaIn) { continue; } // was not a valid input file
    345348        pmFPAFreeData(fpaIn);
    346349    }
Note: See TracChangeset for help on using the changeset viewer.