From 3170d859f0917c0ab40c447df6e99bd1a30fc059 Mon Sep 17 00:00:00 2001 From: Samantha Houts Date: Fri, 30 Mar 2018 11:19:54 -0700 Subject: [PATCH] [Android] Null check previous page on TabbedPage fixes #2035 --- Xamarin.Forms.Platform.Android/AppCompat/TabbedPageRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xamarin.Forms.Platform.Android/AppCompat/TabbedPageRenderer.cs b/Xamarin.Forms.Platform.Android/AppCompat/TabbedPageRenderer.cs index d1e4a77cd..8d6ce2af5 100644 --- a/Xamarin.Forms.Platform.Android/AppCompat/TabbedPageRenderer.cs +++ b/Xamarin.Forms.Platform.Android/AppCompat/TabbedPageRenderer.cs @@ -74,7 +74,7 @@ namespace Xamarin.Forms.Platform.Android.AppCompat { if(_previousPage != Element.CurrentPage) { - _previousPage.SendDisappearing(); + _previousPage?.SendDisappearing(); _previousPage = Element.CurrentPage; } Element.CurrentPage = Element.Children[position];