提交 90a6a43a 编写于 作者: C CyrusNajmabadi

Deal with null ref.

上级 74a68b44
......@@ -244,7 +244,7 @@ internal void WriteLocation(Location location)
{
location = location ?? Location.None;
WriteString(location.SourceTree.FilePath ?? "");
WriteString(location.SourceTree?.FilePath ?? "");
WriteInteger(location.SourceSpan.Start);
WriteInteger(location.SourceSpan.Length);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册