Skip to content

Commit

Permalink
From v13: #612 - couple of extra checks so we never try to create an …
Browse files Browse the repository at this point in the history
…XCData section with a null value. (#618)
  • Loading branch information
KevinJump committed Apr 17, 2024
1 parent 4515e14 commit 1786b16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uSync.Core/Serialization/Serializers/ContentSerializerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,8 @@ protected string GetExportValue(object? value, IPropertyType propertyType, strin
{
return jsonNode.SerializeJsonNode();
}
logger.LogTrace("Export Value {PropertyEditorAlias} {exportValue}", propertyType.PropertyEditorAlias, exportValue);
return exportValue;
logger.LogTrace("Export Value {PropertyEditorAlias} {exportValue}", propertyType.PropertyEditorAlias, exportValue ?? string.Empty);
return exportValue ?? string.Empty
}

protected object? GetImportValue(string value, IPropertyType propertyType, string culture, string segment)
Expand Down

0 comments on commit 1786b16

Please sign in to comment.