IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35774 for trunk/psModules


Ignore:
Timestamp:
Jul 3, 2013, 5:29:38 PM (13 years ago)
Author:
watersc1
Message:

Wrap my data_exists calls to prevent problems with ppStack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionSimple.c

    r35771 r35774  
    353353    conv1->analysis = psMetadataCopy(conv1->analysis, outAnalysis);
    354354    conv1->data_exists = true;
    355     conv1->parent->data_exists = true;
    356     conv1->parent->parent->data_exists = true;
     355    if (conv1->parent) {
     356      conv1->parent->data_exists = true;
     357    }
     358    if (conv1->parent->parent) {
     359      conv1->parent->parent->data_exists = true;
     360    }
    357361  }
    358362  if (conv2) {
    359363    conv2->analysis = psMetadataCopy(conv2->analysis, outAnalysis);
    360364    conv2->data_exists = true;
    361     conv2->parent->data_exists = true;
    362     conv2->parent->parent->data_exists = true;
     365    if (conv2->parent) {
     366      conv2->parent->data_exists = true;
     367    }
     368    if (conv2->parent->parent) {
     369      conv2->parent->parent->data_exists = true;
     370    }
    363371  }
    364372
Note: See TracChangeset for help on using the changeset viewer.