IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29913


Ignore:
Timestamp:
Dec 5, 2010, 2:21:51 PM (15 years ago)
Author:
eugene
Message:

only attempt to copy pixels if they exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101103/psModules/src/objects/pmSource.c

    r29546 r29913  
    189189    // pixels.  Modifying these pixels (ie, subtracting the model) will affect the pixels seen
    190190    // by all copies.
    191     source->pixels   = psImageCopyView(NULL, in->pixels);
    192     source->variance   = psImageCopyView(NULL, in->variance);
     191    source->pixels   = in->pixels   ? psImageCopyView(NULL, in->pixels)   : NULL;
     192    source->variance = in->variance ? psImageCopyView(NULL, in->variance) : NULL;
    193193    source->maskView = in->maskView ? psImageCopyView(NULL, in->maskView) : NULL;
    194194
Note: See TracChangeset for help on using the changeset viewer.