diff options
author | Kangho Hur <kangho.hur@samsung.com> | 2017-09-29 14:37:10 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-10-23 13:34:42 +0900 |
commit | 4e3c8147851c2e438a5b3ac1f1c226bdf0a0681f (patch) | |
tree | e36669a509e697af5337aef1299fcbfe71c90453 /Xamarin.Forms.Platform.Tizen | |
parent | c164e5f59c44d40ede43cd4c328e0ada4d267323 (diff) | |
download | xamarin-forms-4e3c8147851c2e438a5b3ac1f1c226bdf0a0681f.tar.gz xamarin-forms-4e3c8147851c2e438a5b3ac1f1c226bdf0a0681f.tar.bz2 xamarin-forms-4e3c8147851c2e438a5b3ac1f1c226bdf0a0681f.zip |
Skip OnScolled() if ScrollViewRenderer'sControl is null
Change-Id: I3e1da379b181d90d4ee83f5bd3e28e9816437572
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs index 570cb5da..19244f95 100644 --- a/Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs @@ -142,7 +142,10 @@ namespace Xamarin.Forms.Platform.Tizen // elm-scroller updates the CurrentRegion after render Device.BeginInvokeOnMainThread(() => { - OnScrolled(Control, EventArgs.Empty); + if (Control != null) + { + OnScrolled(Control, EventArgs.Empty); + } }); } |