IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 6, 2006, 11:45:58 AM (20 years ago)
Author:
magnier
Message:

fixed segfault in pmFPAviewThisPHU for SPLIT files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAview.c

    r8815 r9363  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-09-15 09:49:01 $
     5 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-10-06 21:45:58 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7272    PS_ASSERT_PTR_NON_NULL(view, NULL);
    7373    PS_ASSERT_PTR_NON_NULL(fpa, NULL);
     74    PS_ASSERT_PTR_NON_NULL(fpa->chips, NULL);
    7475
    7576    if (view->chip < 0) {
     
    267268    if (view->chip < 0) {
    268269        hdu = pmHDUFromFPA (fpa);
     270        if (!hdu)
     271            return NULL;
    269272        if (hdu->blankPHU)
    270273            return hdu;
     
    274277        chip = pmFPAviewThisChip (view, fpa);
    275278        hdu  = pmHDUFromChip (chip);
     279        if (!hdu)
     280            return NULL;
    276281        if (hdu->blankPHU)
    277282            return hdu;
     
    283288        cell = pmFPAviewThisCell (view, fpa);
    284289        hdu  = pmHDUFromCell (cell);
     290        if (!hdu) {
     291            psAbort("psModules", "a split readout is not covered by the current paradigm");
     292        }
    285293        if (hdu->blankPHU)
    286294            return hdu;
Note: See TracChangeset for help on using the changeset viewer.