From 74966ed969c84a2d43c51a51d86a294fa102966f Mon Sep 17 00:00:00 2001 From: Kevin Jump Date: Wed, 10 Apr 2024 12:35:13 +0100 Subject: [PATCH] #612 ensure we return an empty string if a mapper returns null. --- uSync.Core/Mapping/SyncValueMapperCollection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uSync.Core/Mapping/SyncValueMapperCollection.cs b/uSync.Core/Mapping/SyncValueMapperCollection.cs index 4d15b51f..df3c0b33 100644 --- a/uSync.Core/Mapping/SyncValueMapperCollection.cs +++ b/uSync.Core/Mapping/SyncValueMapperCollection.cs @@ -55,7 +55,7 @@ public string GetExportValue(object value, string editorAlias) mappedValue = mapper.GetExportValue(mappedValue, editorAlias); } - return mappedValue; + return mappedValue ?? string.Empty; } return GetSafeValue(value);