Skip to content

Commit 2402423

Browse files
markballengerbruno-garcia
authored andcommitted
null check contextProp.Value during IncludeEventDataOnBreadcrumbs (#323)
1 parent 93c77cb commit 2402423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sentry.NLog/SentryTarget.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ protected override void Write(LogEventInfo logEvent)
332332
data = data ?? new Dictionary<string, string>(contextProps.Count);
333333
foreach (var contextProp in contextProps)
334334
{
335-
data.Add(contextProp.Key, contextProp.Value.ToString());
335+
data.Add(contextProp.Key, contextProp.Value?.ToString());
336336
}
337337
}
338338
}

0 commit comments

Comments
 (0)