Skip to content

Commit

Permalink
[play] fix crash when playing empty measurements. (#1385)
Browse files Browse the repository at this point in the history
  • Loading branch information
KerstinKeller authored and FlorianReimold committed Feb 27, 2024
1 parent 8550424 commit 4e4898a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/play/play_core/src/measurement_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ bool MeasurementContainer::PublishersCreated() const
bool MeasurementContainer::PublishFrame(long long index)
{
// Check that the user created the publishers before publishing a frame
if (!publishers_initialized_ || (index < 0) || index > GetFrameCount())
if (!publishers_initialized_ || (index < 0) || index >= GetFrameCount())
return false;

if (frame_table_[index].publisher_info_)
Expand Down

0 comments on commit 4e4898a

Please sign in to comment.