Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Fixed NRE in PageRenderer (#13013) fixes #12989
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarezruiz committed Dec 10, 2020
1 parent bef5a3a commit fe0db3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Xamarin.Forms.Platform.iOS/Renderers/PageRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ bool OnShouldReceiveTouch(UIGestureRecognizer recognizer, UITouch touch)
{
foreach (UIView v in ViewAndSuperviewsOfView(touch.View))
{
if (v is UITableView || v is UITableViewCell || v.CanBecomeFirstResponder)
if (v != null && (v is UITableView || v is UITableViewCell || v.CanBecomeFirstResponder))
return false;
}
return true;
Expand Down

0 comments on commit fe0db3b

Please sign in to comment.