From 1786b167585c092838abc86da8bbe2da1d219e54 Mon Sep 17 00:00:00 2001 From: Kevin Jump Date: Wed, 17 Apr 2024 13:03:46 +0100 Subject: [PATCH] From v13: #612 - couple of extra checks so we never try to create an XCData section with a null value. (#618) --- uSync.Core/Serialization/Serializers/ContentSerializerBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uSync.Core/Serialization/Serializers/ContentSerializerBase.cs b/uSync.Core/Serialization/Serializers/ContentSerializerBase.cs index 3aea6ae3..d96eaf1f 100644 --- a/uSync.Core/Serialization/Serializers/ContentSerializerBase.cs +++ b/uSync.Core/Serialization/Serializers/ContentSerializerBase.cs @@ -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)