mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 07:13:03 +00:00 
			
		
		
		
	Catch uncaught exception detected by Coverity Scan
This commit is contained in:
		| @@ -477,7 +477,19 @@ int main(int argc, char** argv) | ||||
|     if (global_gps_ephemeris_map.size() > 0) | ||||
|         { | ||||
|             std::map<int, Gps_Ephemeris> Eph_map; | ||||
|             try | ||||
|                 { | ||||
|                     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; | ||||
|  | ||||
|             time_t t = utc_time(Eph_map.begin()->second.i_GPS_week, (long int)current_TOW); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez