diff --git a/Xamarin.Forms.Platform.iOS/Renderers/PageRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/PageRenderer.cs index b3f6b6f3e..d74449e8b 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/PageRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/PageRenderer.cs @@ -207,7 +207,7 @@ namespace Xamarin.Forms.Platform.iOS if (NativeView == null) return; - var uiTapGestureRecognizer = new UITapGestureRecognizer(a => NativeView.EndEditing(true)); + var uiTapGestureRecognizer = new UITapGestureRecognizer(a => NativeView?.EndEditing(true)); uiTapGestureRecognizer.ShouldRecognizeSimultaneously = (recognizer, gestureRecognizer) => true; uiTapGestureRecognizer.ShouldReceiveTouch = OnShouldReceiveTouch;