diff --git a/Xamarin.Forms.Platform.Android/Platform.cs b/Xamarin.Forms.Platform.Android/Platform.cs index 5ac1e451c..449a5266b 100644 --- a/Xamarin.Forms.Platform.Android/Platform.cs +++ b/Xamarin.Forms.Platform.Android/Platform.cs @@ -1020,7 +1020,7 @@ namespace Xamarin.Forms.Platform.Android } foreach (IVisualElementRenderer view in _navModel.Roots.Select(GetRenderer)) - view.UpdateLayout(); + view?.UpdateLayout(); } SizeRequest IPlatform.GetNativeSize(VisualElement view, double widthConstraint, double heightConstraint) @@ -1069,4 +1069,4 @@ namespace Xamarin.Forms.Platform.Android #endregion } -} \ No newline at end of file +}