Skip to content

Commit

Permalink
the null deref we were talking about
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Jul 12, 2022
1 parent 9e75f67 commit dab4501
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cascadia/TerminalApp/TerminalPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4165,9 +4165,9 @@ namespace winrt::TerminalApp::implementation

TitlebarBrush(acrylicBrush);
}
else if (const auto tabRowBg{ _activated ? theme.TabRow().Background() :
theme.TabRow().UnfocusedBackground() };
tabRowBg != nullptr && theme.TabRow() != nullptr)
else if (auto tabRowBg{ theme.TabRow() ? (_activated ? theme.TabRow().Background() :
theme.TabRow().UnfocusedBackground()) :
ThemeColor{ nullptr } })
{
const auto terminalBrush = [this]() -> Media::Brush {
if (const auto& control{ _GetActiveControl() })
Expand Down

0 comments on commit dab4501

Please sign in to comment.