Skip to content

Commit 83f8084

Browse files
committed
Add defensive check in block editor value connector for input that parses as JSON but incudes no content.
1 parent f8fa3df commit 83f8084

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Umbraco.Deploy.Contrib/ValueConnectors/BlockEditorValueConnector.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Microsoft.Extensions.Logging;
1+
using Microsoft.Extensions.Logging;
22
using Newtonsoft.Json;
33
using Newtonsoft.Json.Linq;
44
using System;
@@ -69,7 +69,7 @@ public override string ToArtifact(object value, IPropertyType propertyType, ICol
6969
return null;
7070
}
7171

72-
if (blockEditorValue == null)
72+
if (blockEditorValue?.Content == null)
7373
{
7474
_logger.LogWarning("Deserialized value is null. Skipping conversion to artifact.");
7575
return null;

0 commit comments

Comments
 (0)