Skip to content

Commit

Permalink
fix(multi_object_tracker): fix segmentation fault bug of the debug ob…
Browse files Browse the repository at this point in the history
…ject process (#7347)

fix: finish the process when the object data list is empty

Signed-off-by: Taekjin LEE <[email protected]>
  • Loading branch information
technolojin authored and KhalilSelyan committed Jul 22, 2024
1 parent d4ab504 commit 4c6b01a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions perception/multi_object_tracker/src/debugger/debug_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ void TrackerObjectDebugger::process()
{
if (!is_initialized_) return;

// Check if object_data_list_ is empty
if (object_data_list_.empty()) return;

// update uuid_int
for (auto & object_data : object_data_list_) {
current_ids_.insert(object_data.uuid_int);
Expand Down

0 comments on commit 4c6b01a

Please sign in to comment.