Skip to content

Commit

Permalink
Merge "Add null check to line number in pprof_builder" into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Bingqian Liu authored and Gerrit Code Review committed Jul 25, 2024
2 parents 60cfb66 + 40d984e commit eed6cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/traceconv/pprof_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ PreprocessInliningInfo(trace_processor::TraceProcessor* tp,
int64_t symbol_set_id = it.Get(0).AsLong();
auto func_sysname = it.Get(1).is_null() ? "" : it.Get(1).AsString();
auto filename = it.Get(2).is_null() ? "" : it.Get(2).AsString();
int64_t line_no = it.Get(3).AsLong();
int64_t line_no = it.Get(3).is_null() ? 0 : it.Get(3).AsLong();

inlines[symbol_set_id].emplace_back(interner->InternString(func_sysname),
interner->InternString(filename),
Expand Down

0 comments on commit eed6cb5

Please sign in to comment.