IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24065


Ignore:
Timestamp:
May 4, 2009, 6:14:43 PM (17 years ago)
Author:
Paul Price
Message:

Avoid SEGV when one of the source files isn't specified.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubMatchPSFs.c

    r23758 r24065  
    6060    pmReadout *inSourceRO = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.SOURCES");
    6161    pmReadout *refSourceRO = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.SOURCES");
    62     psArray *inSources = psMetadataLookupPtr(&mdok, inSourceRO->analysis, "PSPHOT.SOURCES"); // Source list
    63     psArray *refSources = psMetadataLookupPtr(&mdok, refSourceRO->analysis, "PSPHOT.SOURCES"); // Source list
     62    psArray *inSources = inSourceRO ? psMetadataLookupPtr(&mdok, inSourceRO->analysis, "PSPHOT.SOURCES") :
     63        NULL; // Source list from input image
     64    psArray *refSources = refSourceRO ? psMetadataLookupPtr(&mdok, refSourceRO->analysis, "PSPHOT.SOURCES") :
     65        NULL ; // Source list from reference image
    6466
    6567    psArray *sources = NULL;            // Merged list of sources
Note: See TracChangeset for help on using the changeset viewer.