diff options
author | darkleem <cdark.lim@samsung.com> | 2017-07-14 19:32:34 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-10-23 13:34:39 +0900 |
commit | b2a4787e51bb177ab8e05be138964d8d111a0cb4 (patch) | |
tree | d8529494bdb9e9b8c0aac76f6b9b0b63a7c78f66 | |
parent | ff8a2e1f975bbe99d7f6a67f5b4d38afdcc764a2 (diff) | |
download | xamarin-forms-b2a4787e51bb177ab8e05be138964d8d111a0cb4.tar.gz xamarin-forms-b2a4787e51bb177ab8e05be138964d8d111a0cb4.tar.bz2 xamarin-forms-b2a4787e51bb177ab8e05be138964d8d111a0cb4.zip |
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.cs | 2 |
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 a6c1c3a3..d5de949b 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); } |