[iOS, Android] Prevent NREs in ScrollViews (#5383)
authorSamantha Houts <samhouts@users.noreply.github.com>
Thu, 28 Feb 2019 02:08:47 +0000 (18:08 -0800)
committerGitHub <noreply@github.com>
Thu, 28 Feb 2019 02:08:47 +0000 (18:08 -0800)
commit0b7965f8110daa64848adb88cb6893354f9c0af6
treec75b2c26c400a9da466303ac65590d7f68213fa8
parent7d34a847b237cf2b20f866eb3451fe4eeed1df78
[iOS, Android] Prevent NREs in ScrollViews (#5383)

* Add null checks on new code paths added in #4522

fixes #5161

* Fix cast...

Fixes #5247
Xamarin.Forms.Platform.Android/Renderers/AHorizontalScrollView.cs
Xamarin.Forms.Platform.Android/Renderers/ScrollViewRenderer.cs
Xamarin.Forms.Platform.iOS/Renderers/ScrollViewRenderer.cs