summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Pages
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Pages')
-rw-r--r--Xamarin.Forms.Pages/DataSourceBinding.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/Xamarin.Forms.Pages/DataSourceBinding.cs b/Xamarin.Forms.Pages/DataSourceBinding.cs
index 44af47b4..7491ca30 100644
--- a/Xamarin.Forms.Pages/DataSourceBinding.cs
+++ b/Xamarin.Forms.Pages/DataSourceBinding.cs
@@ -120,11 +120,8 @@ namespace Xamarin.Forms.Pages
{
base.Unapply();
- if (_dataSourceRef != null && _dataSourceRef.IsAlive)
- {
- var dataSourceProviderer = (IDataSourceProvider)_dataSourceRef.Target;
- dataSourceProviderer?.UnmaskKey(_path);
- }
+ var dataSourceProviderer = (IDataSourceProvider)_dataSourceRef?.Target;
+ dataSourceProviderer?.UnmaskKey(_path);
_expression?.Unapply();
}