Skip to content

Commit

Permalink
not an actual fix for 12169, but a crash nonetheless
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Jan 18, 2022
1 parent f605adc commit dd213a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cascadia/Remoting/WindowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,11 @@ namespace winrt::Microsoft::Terminal::Remoting::implementation

if (_peasant)
{
// Inform the monarch of the time we were last activated
_monarch.HandleActivatePeasant(_peasant.GetLastActivatedArgs());
if (const auto& lastActivated{ _peasant.GetLastActivatedArgs() })
{
// Inform the monarch of the time we were last activated
_monarch.HandleActivatePeasant(lastActivated);
}
}

if (!_isKing)
Expand Down

0 comments on commit dd213a5

Please sign in to comment.