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

Commit

Permalink
Fix NRE dropping element from removed view (#14642)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarezruiz committed Oct 2, 2021
1 parent b914676 commit ea06f15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Xamarin.Forms.Platform.iOS/DragAndDropDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ public void PerformDrop(UIDropInteraction interaction, IUIDropSession session)
void SendEventArgs<TRecognizer>(Action<TRecognizer> func, View view)
where TRecognizer : class
{
if (view == null)
return;

var gestures =
view.GestureRecognizers;

Expand Down

0 comments on commit ea06f15

Please sign in to comment.