Changeset 14070


Ignore:
Timestamp:
11/30/12 11:22:26 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: Added check that Observations is not empty otherwise we have a crash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/Container/Observations.cpp

    r14050 r14070  
    4545        IssmPDouble  offset,minlength,minspacing,mintrimming,maxtrimming;
    4646        Observation *observation = NULL;
     47
     48        /*Check that observations is not empty*/
     49        if(n==0) _error_("No observation found");
    4750
    4851        /*Get extrema*/
Note: See TracChangeset for help on using the changeset viewer.