not an actual fix for 12169, but a crash nonetheless

This commit is contained in:
Mike Griese
2022-01-18 11:23:21 -06:00
parent f605adc994
commit dd213a5c18

View File

@@ -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)