From 4c6b01a611b224cfc003b7a13e5d673398441356 Mon Sep 17 00:00:00 2001 From: Taekjin LEE Date: Mon, 10 Jun 2024 09:12:10 +0900 Subject: [PATCH] fix(multi_object_tracker): fix segmentation fault bug of the debug object process (#7347) fix: finish the process when the object data list is empty Signed-off-by: Taekjin LEE --- perception/multi_object_tracker/src/debugger/debug_object.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/perception/multi_object_tracker/src/debugger/debug_object.cpp b/perception/multi_object_tracker/src/debugger/debug_object.cpp index f166e83e136af..e6a0b6242a168 100644 --- a/perception/multi_object_tracker/src/debugger/debug_object.cpp +++ b/perception/multi_object_tracker/src/debugger/debug_object.cpp @@ -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);