From 0c814b598e3c29995e5fe4a28220527fd8c8101e Mon Sep 17 00:00:00 2001 From: Maksym Koshovyi Date: Fri, 5 Aug 2022 13:32:12 +0300 Subject: [PATCH] Update TabbedPageManager.cs --- src/Controls/src/Core/Platform/Android/TabbedPageManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controls/src/Core/Platform/Android/TabbedPageManager.cs b/src/Controls/src/Core/Platform/Android/TabbedPageManager.cs index 7414b139e8ad..d6e9393d466c 100644 --- a/src/Controls/src/Core/Platform/Android/TabbedPageManager.cs +++ b/src/Controls/src/Core/Platform/Android/TabbedPageManager.cs @@ -237,7 +237,7 @@ void RootViewChanged(object sender, EventArgs e) _tabLayoutFragment = new ViewFragment(TabLayout); var layoutContent = rootManager.RootView.FindViewById(Resource.Id.navigationlayout_content); - if (layoutContent.LayoutParameters is ViewGroup.MarginLayoutParams cl) + if (layoutContent?.LayoutParameters is ViewGroup.MarginLayoutParams cl) { cl.BottomMargin = 0; }