Skip to content

Commit 991f7cf

Browse files
Failed when val was null but now just stores the null value in case it needs to update from a string to null
1 parent 8d9b288 commit 991f7cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Umbraco.Deploy.Contrib.Connectors/ValueConnectors/VortoValueConnector.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Newtonsoft.Json.Linq;
66
using Umbraco.Core;
77
using Umbraco.Core.Deploy;
8+
using Umbraco.Core.Logging;
89
using Umbraco.Core.Models;
910
using Umbraco.Core.Services;
1011
using Umbraco.Deploy.ValueConnectors;
@@ -159,7 +160,7 @@ public void SetValue(IContentBase content, string alias, string value)
159160

160161
// due to how ValueConnector.SetValue() works, we have to pass the mock item through the connector to have it do its
161162
// work on parsing the value on the item itself.
162-
valueConnector.SetValue(mockContent, mockProperty.Alias, val.ToString());
163+
valueConnector.SetValue(mockContent, mockProperty.Alias, val?.ToString());
163164

164165
// get the value back and assign
165166
var convertedValue = mockContent.GetValue(mockProperty.Alias);

0 commit comments

Comments
 (0)