null guard

fixes #27640
This commit is contained in:
isidor 2017-06-02 11:25:04 +02:00
parent 835be78328
commit 309963a2d0

View file

@ -506,7 +506,10 @@ export class DebugService implements debug.IDebugService {
}
const state = this.state;
this.debugState.set(debug.State[state].toLowerCase());
const stateLabel = debug.State[state];
if (stateLabel) {
this.debugState.set(stateLabel.toLowerCase());
}
this._onDidChangeState.fire(state);
}