Skip to content

Commit

Permalink
#612 ensure we return an empty string if a mapper returns null.
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Apr 10, 2024
1 parent b14a9e9 commit 74966ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uSync.Core/Mapping/SyncValueMapperCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 74966ed

Please sign in to comment.