Skip to content

Commit 34e7692

Browse files
committed
Correctly convert null values to entity properties
Fixes serilog/serilog#620
1 parent c28996e commit 34e7692

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(null);
6969

7070
var valueType = value.GetType();
7171

0 commit comments

Comments
 (0)