Skip to content

Commit 9c52ba1

Browse files
committed
CSHARP-5143: Coverity analysis defect 127277: Dereference before null check.
1 parent 9f2bf0c commit 9c52ba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstMapExpression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public override BsonValue Render()
5252
{ "$map", new BsonDocument
5353
{
5454
{ "input", _input.Render() },
55-
{ "as", _as.Name, _as != null },
55+
{ "as", _as?.Name, _as != null },
5656
{ "in", _in.Render() }
5757
}
5858
}

0 commit comments

Comments
 (0)