Skip to content

Commit

Permalink
fix: UnitTests
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeStevens318 committed May 18, 2021
1 parent 81c9d40 commit fb75e30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Core/Requests/RequestDataConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/hubspot-client.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
<Version>0.19.1</Version>
<Version>0.19.2</Version>
<AssemblyName>Skarp.HubSpotClient</AssemblyName>
<RootNamespace>Skarp.HubSpotClient</RootNamespace>
<Title>HubSpotClient</Title>
Expand Down

0 comments on commit fb75e30

Please sign in to comment.