Skip to content

Commit e841e5e

Browse files
committed
fb
1 parent 499c281 commit e841e5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Extensions/AzureBlobPayloads/Converters/LargePayloadDataConverter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ public sealed class LargePayloadDataConverter(DataConverter innerConverter, IPay
3737
/// <returns>The serialized value or the token if externalized.</returns>
3838
public override string? Serialize(object? value)
3939
{
40-
if (value is null)
40+
string? json = this.innerConverter.Serialize(value);
41+
42+
if (string.IsNullOrEmpty(json))
4143
{
4244
return null;
4345
}
4446

45-
string json = this.innerConverter.Serialize(value) ?? "null";
46-
4747
int byteCount = this.utf8.GetByteCount(json);
4848
if (byteCount < this.largePayloadStorageOptions.ExternalizeThresholdBytes)
4949
{

0 commit comments

Comments
 (0)