IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23426


Ignore:
Timestamp:
Mar 19, 2009, 11:29:52 AM (17 years ago)
Author:
eugene
Message:

add error check for missing classID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageDetrendReadout.c

    r23229 r23426  
    143143        // get normalization from the class_id
    144144        float norm = psMetadataLookupF32 (&mdok, normlist, classID);
     145        if (!mdok) {
     146            psError(PS_ERR_IO, false, "failed to find class ID %s in normalization table\n", classID);
     147            psFree(detview);
     148            return false;
     149        }
    145150
    146151        pmHDU *hdu = pmHDUFromReadout(input); // HDU of interest
Note: See TracChangeset for help on using the changeset viewer.