summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authorKevin Petit <kevin.petit@outlook.com>2017-01-19 10:12:51 +0100
committerJason Smith <jason.smith@xamarin.com>2017-01-19 11:40:36 -0800
commita48f2d28e4e70985714d7dc7ff1c37d3ee536e79 (patch)
tree21ad0722cd2b631b19f070e60f3b82af33444ade /Xamarin.Forms.Core
parent27206618d732d026de4d254aad0865515bc8a7fb (diff)
downloadxamarin-forms-a48f2d28e4e70985714d7dc7ff1c37d3ee536e79.tar.gz
xamarin-forms-a48f2d28e4e70985714d7dc7ff1c37d3ee536e79.tar.bz2
xamarin-forms-a48f2d28e4e70985714d7dc7ff1c37d3ee536e79.zip
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 cff1eb10..352e2549 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);
}
}