summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-09-29 05:37:10 (GMT)
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 04:34:42 (GMT)
commit4e3c8147851c2e438a5b3ac1f1c226bdf0a0681f (patch)
treee36669a509e697af5337aef1299fcbfe71c90453
parentc164e5f59c44d40ede43cd4c328e0ada4d267323 (diff)
downloadxamarin-forms-4e3c8147851c2e438a5b3ac1f1c226bdf0a0681f.zip
xamarin-forms-4e3c8147851c2e438a5b3ac1f1c226bdf0a0681f.tar.gz
xamarin-forms-4e3c8147851c2e438a5b3ac1f1c226bdf0a0681f.tar.bz2
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 570cb5d..19244f9 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);
+ }
});
}