summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkleem <cdark.lim@samsung.com>2017-07-14 10:32:34 (GMT)
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 04:34:39 (GMT)
commitb2a4787e51bb177ab8e05be138964d8d111a0cb4 (patch)
treed8529494bdb9e9b8c0aac76f6b9b0b63a7c78f66
parentff8a2e1f975bbe99d7f6a67f5b4d38afdcc764a2 (diff)
downloadxamarin-forms-b2a4787e51bb177ab8e05be138964d8d111a0cb4.zip
xamarin-forms-b2a4787e51bb177ab8e05be138964d8d111a0cb4.tar.gz
xamarin-forms-b2a4787e51bb177ab8e05be138964d8d111a0cb4.tar.bz2
Fix crash when attaching effect
Change-Id: I22841a8dce74a3a73cc2ef58f54b072e7c40fedc Signed-off-by: darkleem <cdark.lim@samsung.com>
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
index a6c1c3a..d5de949 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
@@ -723,7 +723,7 @@ namespace Xamarin.Forms.Platform.Tizen
/// <param name="effect">The effect to register.</param>
void OnRegisterEffect(PlatformEffect effect)
{
- effect.SetContainer(Element.Parent == null ? null : Platform.GetRenderer(Element.Parent).NativeView);
+ effect.SetContainer(Element.Parent == null ? null : Platform.GetRenderer(Element.Parent)?.NativeView);
effect.SetControl(NativeView);
}