Skip to content

Commit

Permalink
Null guard in `ShellFlyoutTemplatedContentRenderer.HeaderContainer.Up…
Browse files Browse the repository at this point in the history
…dateMinimumHeight` (#16573)

* Null guard

* Update ShellFlyoutTemplatedContentRenderer.cs

* Update ShellFlyoutTemplatedContentRenderer.cs

---------

Co-authored-by: Shane Neuville <shane94@hotmail.com>
  • Loading branch information
BioTurboNick and PureWeen authored Sep 5, 2024
1 parent 84e46ba commit afc1f5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ void UpdateMinimumHeight()
frameLayoutView.SetMinimumHeight(minHeight);
}

if (PlatformView.MinimumHeight != minHeight)
if (PlatformView is not null && PlatformView.MinimumHeight != minHeight)
{
PlatformView.SetMinimumHeight(minHeight);
}
Expand Down

0 comments on commit afc1f5c

Please sign in to comment.