Skip to content

Commit 308d857

Browse files
committed
Fixes #103515 - first pass
1 parent bcd9cb8 commit 308d857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Text.Json/gen/JsonSourceGenerator.Emitter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ private static void GenerateFastPathFuncHeader(SourceWriter writer, TypeGenerati
974974
if (!skipNullCheck && typeGenSpec.TypeRef.CanBeNull)
975975
{
976976
writer.WriteLine($$"""
977-
if ({{ValueVarName}} == null)
977+
if ({{ValueVarName}} is null)
978978
{
979979
{{WriterVarName}}.WriteNullValue();
980980
return;

0 commit comments

Comments
 (0)