IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19505


Ignore:
Timestamp:
Sep 11, 2008, 2:59:54 PM (18 years ago)
Author:
Paul Price
Message:

Protect against SEGV when !inCell.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackLoop.c

    r19477 r19505  
    1212#include "ppStack.h"
    1313
    14 //#define TESTING
     14#define TESTING
    1515
    1616#define WCS_TOLERANCE 0.001             // Tolerance for WCS
     
    529529        for (int i = 0; i < num; i++) {
    530530            pmCell *inCell = cells->data[i]; // Input cell
     531            if (!inCell) {
     532                exptimes->data.F32[i] = 0.0;
     533                continue;
     534            }
    531535            exptimes->data.F32[i] = psMetadataLookupF32(NULL, inCell->concepts, "CELL.EXPOSURE");
    532536            psListAdd(cellList, PS_LIST_TAIL, inCell);
Note: See TracChangeset for help on using the changeset viewer.