提交 d352ec49 编写于 作者: D David Poeschl

Fix null reference in C# doc comment management

上级 ef57cb6c
......@@ -281,7 +281,7 @@ private SyntaxNode GetNodeContainingTargetNode(SyntaxNode matchingNode)
updatedNode.IsKind(SyntaxKind.DelegateDeclaration))
{
var updatedLeadingTrivia = UpdateParamTagsInLeadingTrivia(document, updatedNode, declarationSymbol, signaturePermutation);
if (!updatedLeadingTrivia.IsEmpty)
if (updatedLeadingTrivia != default && !updatedLeadingTrivia.IsEmpty)
{
updatedNode = updatedNode.WithLeadingTrivia(updatedLeadingTrivia);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册