Skip to content

Commit

Permalink
fix(state): handle nil frame on refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarriga committed Jul 24, 2021
1 parent ef0be7d commit d7fefe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dapui/state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function UIState:_refresh_watches(session)
end

function UIState:_emit_refreshed(session)
if self:current_frame().id ~= session.current_frame.id then
if not self:current_frame() or (self:current_frame().id ~= session.current_frame.id) then
self._monitored_vars = {}
end
self._current_frame = session.current_frame
Expand Down

0 comments on commit d7fefe6

Please sign in to comment.