summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authorKevin Petit <kevin.petit@outlook.com>2017-01-19 09:12:51 (GMT)
committerStephane Delcroix <stephane@delcroix.org>2017-01-19 09:12:51 (GMT)
commita11e4c638b105c4d6466894c57a357c893996116 (patch)
tree35161c7edb7501118ec7b92c173e69e9ca2ee0f9 /Xamarin.Forms.Core
parentfb024a6e62363af2b14e704c0559eb7a2f08c082 (diff)
downloadxamarin-forms-a11e4c638b105c4d6466894c57a357c893996116.zip
xamarin-forms-a11e4c638b105c4d6466894c57a357c893996116.tar.gz
xamarin-forms-a11e4c638b105c4d6466894c57a357c893996116.tar.bz2
Fix NullReferenceException in VisualElement finalize. (#701)
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r--Xamarin.Forms.Core/VisualElement.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/VisualElement.cs b/Xamarin.Forms.Core/VisualElement.cs
index cff1eb1..352e254 100644
--- a/Xamarin.Forms.Core/VisualElement.cs
+++ b/Xamarin.Forms.Core/VisualElement.cs
@@ -790,7 +790,7 @@ namespace Xamarin.Forms
}
if (!GetIsDefault(TriggersProperty)) {
- var triggers = GetValue(TriggersProperty) as AttachedCollection<Trigger>;
+ var triggers = GetValue(TriggersProperty) as AttachedCollection<TriggerBase>;
triggers.DetachFrom(this);
}
}