IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 27, 2007, 3:01:14 PM (18 years ago)
Author:
Paul Price
Message:

Adding check on HDU.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmPSF_IO.c

    r15562 r15707  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-11-10 01:09:20 $
     8 *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-11-28 01:01:14 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    187187    PS_ASSERT_PTR_NON_NULL(file->fpa, false);
    188188    bool status;
    189     pmHDU *hdu;
    190189    char *headName, *tableName, *residName;
    191190
     
    205204
    206205    // get the current header
    207     hdu = pmFPAviewThisHDU (view, file->fpa);
     206    pmHDU *hdu = pmFPAviewThisHDU (view, file->fpa);
     207    if (!hdu) {
     208        psError(PS_ERR_UNKNOWN, false, "Unable to find HDU");
     209        return false;
     210    }
    208211
    209212    // if file does not yet have a PHU, attempt to write one to disk
Note: See TracChangeset for help on using the changeset viewer.