diff --git a/Xamarin.Forms.Core/BindingExpression.cs b/Xamarin.Forms.Core/BindingExpression.cs index bff7053b60a..c508bf10fe6 100644 --- a/Xamarin.Forms.Core/BindingExpression.cs +++ b/Xamarin.Forms.Core/BindingExpression.cs @@ -442,6 +442,10 @@ void SetupPart(TypeInfo sourceType, BindingExpressionPart part) internal static bool TryConvert(ref object value, BindableProperty targetProperty, Type convertTo, bool toTarget) { + if (targetProperty == null) + return false; + if (convertTo == null) + return false; if (value == null) return !convertTo.GetTypeInfo().IsValueType || Nullable.GetUnderlyingType(convertTo) != null; try