diff --git a/src/caret_analyze/infra/lttng/ros2_tracing/processor.py b/src/caret_analyze/infra/lttng/ros2_tracing/processor.py index 8de14b4f0..4ce50fb7a 100644 --- a/src/caret_analyze/infra/lttng/ros2_tracing/processor.py +++ b/src/caret_analyze/infra/lttng/ros2_tracing/processor.py @@ -547,8 +547,10 @@ def _handle_rclcpp_publish( ) -> None: if not self._is_valid_data(event): return - - publisher_handle = get_field(event, 'publisher_handle') + if 'publisher_handle' in event.keys(): + publisher_handle = get_field(event, 'publisher_handle') + else: + publisher_handle = 0 timestamp = get_field(event, '_timestamp') message = get_field(event, 'message') tid = get_field(event, '_vtid')