diff --git a/src/Core/Requests/RequestDataConverter.cs b/src/Core/Requests/RequestDataConverter.cs index 90ab7d5..e577762 100644 --- a/src/Core/Requests/RequestDataConverter.cs +++ b/src/Core/Requests/RequestDataConverter.cs @@ -290,7 +290,7 @@ internal object ConvertSingleEntity(ExpandoObject dynamicObject, object dto) dynamicProp.Key, dynamicValue); // skip any nullable properties with a empty value - if (Nullable.GetUnderlyingType(targetProp.PropertyType) != null && string.IsNullOrEmpty(dynamicValue.ToString())) + if (targetProp != null && Nullable.GetUnderlyingType(targetProp.PropertyType) != null && string.IsNullOrEmpty(dynamicValue.ToString())) continue; targetProp?.SetValue(dto, dynamicValue.GetType() == targetProp.PropertyType diff --git a/src/hubspot-client.csproj b/src/hubspot-client.csproj index 74f24ac..9e6ea3a 100644 --- a/src/hubspot-client.csproj +++ b/src/hubspot-client.csproj @@ -1,7 +1,7 @@  netstandard2.0;net461 - 0.19.1 + 0.19.2 Skarp.HubSpotClient Skarp.HubSpotClient HubSpotClient