summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-09-29 14:37:10 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 13:34:42 +0900
commit4e3c8147851c2e438a5b3ac1f1c226bdf0a0681f (patch)
treee36669a509e697af5337aef1299fcbfe71c90453
parentc164e5f59c44d40ede43cd4c328e0ada4d267323 (diff)
downloadxamarin-forms-4e3c8147851c2e438a5b3ac1f1c226bdf0a0681f.tar.gz
xamarin-forms-4e3c8147851c2e438a5b3ac1f1c226bdf0a0681f.tar.bz2
xamarin-forms-4e3c8147851c2e438a5b3ac1f1c226bdf0a0681f.zip
Skip OnScolled() if ScrollViewRenderer'sControl is null
Change-Id: I3e1da379b181d90d4ee83f5bd3e28e9816437572
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs5
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);
+ }
});
}