From 92d462718ad3066b0ea449f465cabc415c2ccfe4 Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Sat, 15 Oct 2016 08:31:33 -0700 Subject: [A] Prevent crash in event when renderer is null in Layout call. (#457) Reproduction unknown, issue deduced from stack traces from HomeAway. --- Xamarin.Forms.Platform.Android/Platform.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Xamarin.Forms.Platform.Android') diff --git a/Xamarin.Forms.Platform.Android/Platform.cs b/Xamarin.Forms.Platform.Android/Platform.cs index 5ac1e451..449a5266 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 +} -- cgit v1.2.3