提交 936ae889 编写于 作者: C CyrusNajmabadi

Address null ref.

上级 babc76b2
......@@ -43,7 +43,8 @@ internal struct ClassifiedSpansAndHighlightSpan
// If the document span is providing us with the classified spans up front, then we
// can just use that. Otherwise, go back and actually classify the text for the line
// the document span is on.
if (documentSpan.Properties.TryGetValue(Key, out var value))
if (documentSpan.Properties != null &&
documentSpan.Properties.TryGetValue(Key, out var value))
{
return (ClassifiedSpansAndHighlightSpan)value;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册