Skip to content

Commit e8565f0

Browse files
committed
Merge pull request #2 from serilog/nblumhardt-patch-1
Correctly convert null values to entity properties
2 parents c28996e + 48e14ec commit e8565f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serilog.Sinks.AzureTableStorage/Sinks/AzureTableStorageWithProperties/AzurePropertyFormatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static EntityProperty ToEntityProperty(LogEventPropertyValue value, strin
6565

6666
private static EntityProperty SimplifyScalar(object value)
6767
{
68-
if (value == null) return null;
68+
if (value == null) return new EntityProperty((byte[])null);
6969

7070
var valueType = value.GetType();
7171

0 commit comments

Comments
 (0)