Handle missing VCP data

This commit is contained in:
Dan Paulat 2022-02-15 22:04:44 -06:00
parent e237e086f0
commit 6759766744

View file

@ -404,6 +404,13 @@ void Ar2vFileImpl::IndexFile()
{
BOOST_LOG_TRIVIAL(debug) << logPrefix_ << "Indexing file";
if (vcpData_ == nullptr)
{
BOOST_LOG_TRIVIAL(warning)
<< logPrefix_ << "Cannot index file without VCP data";
return;
}
for (auto elevationCut : radarData_)
{
uint16_t elevationAngle =