Skip to content

Commit d845ebd

Browse files
przepompownia__
andauthored
fix: missing thread (#322)
* Prevent from displaying frame view for nonexisting thread * Use local variable --------- Co-authored-by: __ <__@__>
1 parent a62e86b commit d845ebd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lua/dapui/components/frames.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ return function(client, send_ready)
1818

1919
local current_frame_id = nil
2020

21-
local frames = client.session.threads[thread_id].frames
21+
local threads = client.session.threads
22+
23+
if not threads or not threads[thread_id] then
24+
return
25+
end
26+
27+
local frames = threads[thread_id].frames
2228
if not frames then
2329
return
2430
end

0 commit comments

Comments
 (0)