Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit da8143d

Browse files
authored
Fix crash clicking on introspection track header (#4675)
1 parent 64464c3 commit da8143d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ClientData/include/ClientData/ThreadTrackDataProvider.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ class ThreadTrackDataProvider final {
5050
[[nodiscard]] std::vector<const orbit_client_protos::TimerInfo*> GetTimers(
5151
uint32_t thread_id, uint64_t min_tick = std::numeric_limits<uint64_t>::min(),
5252
uint64_t max_tick = std::numeric_limits<uint64_t>::max(), bool exclusive = false) const {
53-
return GetScopeTreeTimerData(thread_id)->GetTimers(min_tick, max_tick, exclusive);
53+
const auto* scope_tree_timer_data = GetScopeTreeTimerData(thread_id);
54+
if (scope_tree_timer_data == nullptr) return {};
55+
return scope_tree_timer_data->GetTimers(min_tick, max_tick, exclusive);
5456
}
5557

5658
// This method avoids returning two timers that map to the same pixel, so is especially useful

0 commit comments

Comments
 (0)