[iOS] Rapidly clicking span (6 times at least) on UITest 3525 throws a null exception (#4109)

* https://github.com/xamarin/Xamarin.Forms/issues/3930 fix

* following convention
This commit is contained in:
Andrei 2018-10-23 19:22:42 +03:00 коммит произвёл Shane Neuville
Родитель 65001cecfe
Коммит a7f23cf490
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -181,6 +181,9 @@ namespace Xamarin.Forms.Platform.MacOS
var recognizers = childGestures?.GetChildGesturesFor<TapGestureRecognizer>(x => x.NumberOfTapsRequired == (int)sender.NumberOfTapsRequired);
if(recognizers == null)
return;
var tapGestureRecognizer = ((ChildGestureRecognizer)weakRecognizer.Target).GestureRecognizer as TapGestureRecognizer;
foreach (var item in recognizers)
if (item == tapGestureRecognizer && view != null)