IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 9, 2006, 12:10:13 PM (20 years ago)
Author:
Paul Price
Message:

Extra error checking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAWrite.c

    r7017 r7097  
    1515{
    1616    pmHDU *hdu = pmHDUFromReadout(readout); // The HDU to which to write
     17    if (!hdu) {
     18        psError(PS_ERR_IO, false, "Unable to find HDU for readout.\n");
     19        return false;
     20    }
    1721    psMetadata *header = hdu->header;   // The FITS header
    1822    if (!header) {
     
    4347    }
    4448
     49    if (!hdu->images) {
     50        psError(PS_ERR_IO, true, "No images allocated in HDU.\n");
     51        return false;
     52    }
    4553    psImage *image = hdu->images->data[z]; // The image from the HDU to write
    4654    if (readout->row0 == 0 && readout->col0 == 0 && z == 0) {
Note: See TracChangeset for help on using the changeset viewer.