mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
debug: null guard
This commit is contained in:
parent
0d658f2c03
commit
fad79a043a
|
@ -239,7 +239,7 @@ export class CallStackView extends viewlet.CollapsibleViewletView {
|
|||
const stackFrame = <debug.IStackFrame> element;
|
||||
this.debugService.setFocusedStackFrameAndEvaluate(stackFrame).done(null, errors.onUnexpectedError);
|
||||
|
||||
const isMouse = (e.payload.origin === 'mouse');
|
||||
const isMouse = (e.payload && e.payload.origin === 'mouse');
|
||||
let preserveFocus = isMouse;
|
||||
|
||||
const originalEvent:KeyboardEvent|MouseEvent = e && e.payload && e.payload.originalEvent;
|
||||
|
|
|
@ -433,7 +433,7 @@ export class Model implements debug.IModel {
|
|||
this.threads[reference].stoppedDetails = undefined;
|
||||
|
||||
if (removeThreads) {
|
||||
this.threads[reference] = null;
|
||||
delete this.threads[reference];
|
||||
}
|
||||
} else {
|
||||
Object.keys(this.threads).forEach(ref => {
|
||||
|
|
Loading…
Reference in a new issue