Fix to prevent accessing empty level 3 product records

This commit is contained in:
Dan Paulat 2023-05-28 13:06:20 -05:00
parent 1c159a3926
commit 4e8b5ac452

View file

@ -1013,7 +1013,7 @@ RadarProductManagerImpl::GetLevel3ProductRecord(
auto it = level3ProductRecordsMap_.find(product);
if (it != level3ProductRecordsMap_.cend())
if (it != level3ProductRecordsMap_.cend() && !it->second.empty())
{
if (time == std::chrono::system_clock::time_point {})
{