IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24216 for trunk/ppStack


Ignore:
Timestamp:
May 18, 2009, 11:59:16 AM (17 years ago)
Author:
Paul Price
Message:

Avoid SEGV when !sources.

File:
1 edited

Legend:

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

    r23688 r24216  
    9494        psArray *sources = psMetadataLookupPtr(NULL, photRO->analysis, "PSPHOT.SOURCES"); // Sources
    9595        psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0,
    96                          "Number of sources detected", sources->n);
     96                         "Number of sources detected", sources ? sources->n : 0);
    9797        psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_PHOT", 0,
    9898                         "Time to do photometry", psTimerMark("PPSTACK_PHOT"));
Note: See TracChangeset for help on using the changeset viewer.