提交 29a9e844 编写于 作者: C CyrusNajmabadi

Fix null ref.

上级 9edc37dd
......@@ -168,11 +168,11 @@ private static int GetPrecedence(ReferencedSymbol referencedSymbol)
{
if (location.IsInMetadata)
{
var firstSourceReferenceLocation = referencedSymbol.Locations.FirstOrDefault();
var firstSourceReferenceLocation = referencedSymbol.Locations.FirstOrNullable();
if (firstSourceReferenceLocation != null)
{
result.Add(DefinitionLocation.CreateSymbolLocation(
definition, firstSourceReferenceLocation.Document.Project));
definition, firstSourceReferenceLocation.Value.Document.Project));
}
}
else if (location.IsInSource)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册