From 36fadc3b95b1343a6e623943f886fbcfca829f7b Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Fri, 17 Oct 2025 14:24:24 -0700 Subject: [PATCH] need null check, if match is cancelled --- src/dbg_info/dbg_info.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/dbg_info/dbg_info.c b/src/dbg_info/dbg_info.c index 1802e247..7c6d696f 100644 --- a/src/dbg_info/dbg_info.c +++ b/src/dbg_info/dbg_info.c @@ -1564,19 +1564,22 @@ di_match_artifact_create(String8 key, B32 *cancel_signal, B32 *retry_out, U64 *g lane_sync(); //- rjf: pick match - DI_Match match = {0}; - for EachIndex(idx, lane_count()) - { - if(lane_matches[idx].idx != 0) + DI_Match match = {0}; + if(lane_matches != 0) + { + for EachIndex(idx, lane_count()) { - match = lane_matches[idx]; - if(di_key_match(di_key_zero(), preferred_key) || di_key_match(match.key, preferred_key)) - { - break; - } + if(lane_matches[idx].idx != 0) + { + match = lane_matches[idx]; + if(di_key_match(di_key_zero(), preferred_key) || di_key_match(match.key, preferred_key)) + { + break; + } + } } - } - + } + //- rjf: package as artifact AC_Artifact artifact = {0}; {