提交 e2702b83 编写于 作者: A Alex Dima

Merge pull request #13263 from inspiredjw:patch-1

Cannot read property 'uri' of null fix
......@@ -155,7 +155,9 @@ export function setModelLanguage(model: IModel, language: string): void {
* Set the markers for a model.
*/
export function setModelMarkers(model: IModel, owner: string, markers: IMarkerData[]): void {
StaticServices.markerService.get().changeOne(owner, model.uri, markers);
if (model) {
StaticServices.markerService.get().changeOne(owner, model.uri, markers);
}
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册