From fb75e30134d1e6fbe0232d4f0aa3f447d2ea9257 Mon Sep 17 00:00:00 2001 From: Lee Stevens Date: Tue, 18 May 2021 19:59:02 +1000 Subject: [PATCH] fix: UnitTests --- src/Core/Requests/RequestDataConverter.cs | 2 +- src/hubspot-client.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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