mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-06-26 15:12:51 +00:00
Catch uncaught exception detected by Coverity Scan
This commit is contained in:
parent
8a7f145d47
commit
5722a3f9aa
@ -477,7 +477,19 @@ int main(int argc, char** argv)
|
|||||||
if (global_gps_ephemeris_map.size() > 0)
|
if (global_gps_ephemeris_map.size() > 0)
|
||||||
{
|
{
|
||||||
std::map<int, Gps_Ephemeris> Eph_map;
|
std::map<int, Gps_Ephemeris> Eph_map;
|
||||||
|
try
|
||||||
|
{
|
||||||
Eph_map = global_gps_ephemeris_map.get_map_copy();
|
Eph_map = global_gps_ephemeris_map.get_map_copy();
|
||||||
|
}
|
||||||
|
catch (const boost::exception& e)
|
||||||
|
{
|
||||||
|
std::cout << "Exception in getting Global ephemeris map" << std::endl;
|
||||||
|
delete acquisition;
|
||||||
|
delete gnss_synchro;
|
||||||
|
google::ShutDownCommandLineFlags();
|
||||||
|
std::cout << "GNSS-SDR Front-end calibration program ended." << std::endl;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
current_TOW = Eph_map.begin()->second.d_TOW;
|
current_TOW = Eph_map.begin()->second.d_TOW;
|
||||||
|
|
||||||
time_t t = utc_time(Eph_map.begin()->second.i_GPS_week, (long int)current_TOW);
|
time_t t = utc_time(Eph_map.begin()->second.i_GPS_week, (long int)current_TOW);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user