From 9a6f7712621d24e1bd13f2892f99478466b6f56a Mon Sep 17 00:00:00 2001 From: kingces95 Date: Fri, 17 Mar 2017 15:57:11 -0700 Subject: [PATCH] null check effects before clearing (#821) --- Xamarin.Forms.Core/Element.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xamarin.Forms.Core/Element.cs b/Xamarin.Forms.Core/Element.cs index 016468a7c..bb0199a07 100644 --- a/Xamarin.Forms.Core/Element.cs +++ b/Xamarin.Forms.Core/Element.cs @@ -525,7 +525,7 @@ namespace Xamarin.Forms { foreach (Effect effect in _effects) { - effect.ClearEffect(); + effect?.ClearEffect(); } }