提交 5a4d663f 编写于 作者: I isidor

debug null guard

fixes #28996
上级 97af94c9
......@@ -496,12 +496,18 @@ export class Thread implements IThread {
});
}
return session.exceptionInfo({ threadId: this.threadId }).then(exception => ({
return session.exceptionInfo({ threadId: this.threadId }).then(exception => {
if (!exception) {
return null;
}
return {
id: exception.body.exceptionId,
description: exception.body.description,
breakMode: exception.body.breakMode,
details: exception.body.details
}));
};
});
}
return TPromise.as(null);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册