提交 cf66740f 编写于 作者: I isidor

debug: null guard

fixes #21379
上级 d6693678
......@@ -583,11 +583,14 @@ export class Process implements debug.IProcess {
public deemphasizeSource(uri: uri): void {
this.threads.forEach(thread => {
thread.getCallStack().forEach(stackFrame => {
if (stackFrame.source.uri.toString() === uri.toString()) {
stackFrame.source.deemphasize = true;
}
});
const callStack = thread.getCallStack();
if (callStack) {
callStack.forEach(stackFrame => {
if (stackFrame.source.uri.toString() === uri.toString()) {
stackFrame.source.deemphasize = true;
}
});
}
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册