Skip to content

Commit

Permalink
Add missing null-forgiving operator
Browse files Browse the repository at this point in the history
  • Loading branch information
jozkee committed Jan 26, 2021
1 parent 0eaf149 commit 2e55d73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ internal bool TryWrite(Utf8JsonWriter writer, in T value, JsonSerializerOptions
{
ReferenceResolver resolver = state.ReferenceResolver;
// Write null to break reference cycles.
if (resolver.ContainsReferenceForCycleDetection(value))
if (resolver.ContainsReferenceForCycleDetection(value!))
{
writer.WriteNullValue();
return true;
Expand Down

0 comments on commit 2e55d73

Please sign in to comment.