summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Smith <jason.smith@xamarin.com>2016-10-15 08:31:33 -0700
committerRui Marinho <me@ruimarinho.net>2016-10-15 16:31:33 +0100
commit92d462718ad3066b0ea449f465cabc415c2ccfe4 (patch)
tree6bce51f62f47b8f7852d5ffe3a8cec97a12a0665
parent08c1d1c107fa441c1665d8e9ce2bd86229a85959 (diff)
downloadxamarin-forms-92d462718ad3066b0ea449f465cabc415c2ccfe4.tar.gz
xamarin-forms-92d462718ad3066b0ea449f465cabc415c2ccfe4.tar.bz2
xamarin-forms-92d462718ad3066b0ea449f465cabc415c2ccfe4.zip
[A] Prevent crash in event when renderer is null in Layout call. (#457)
Reproduction unknown, issue deduced from stack traces from HomeAway.
-rw-r--r--Xamarin.Forms.Platform.Android/Platform.cs4
1 files changed, 2 insertions, 2 deletions
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
+}