IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23349


Ignore:
Timestamp:
Mar 17, 2009, 11:31:02 AM (17 years ago)
Author:
Paul Price
Message:

Binning is only defined if the background model is.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotMagnitudes.c

    r23287 r23349  
    3636
    3737    // the binning details are saved on the analysis metadata
    38     psImageBinning *binning = psMetadataLookupPtr(&status, backModel->analysis, "PSPHOT.BACKGROUND.BINNING");
     38    psImageBinning *binning = NULL;
     39    if (backModel) {
     40        binning = psMetadataLookupPtr(&status, backModel->analysis, "PSPHOT.BACKGROUND.BINNING");
     41    }
    3942
    4043    bool IGNORE_GROWTH = psMetadataLookupBool (&status, recipe, "IGNORE_GROWTH");
Note: See TracChangeset for help on using the changeset viewer.