Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Avoid potential NPE to fix microsoft/vscode-node-debug2#149
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Oct 27, 2017
1 parent a933b94 commit 2092710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chrome/chromeDebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter {
*/
telemetry.reportEvent('debugStopped', { reason });
this._hasTerminated = true;
if (this._clientAttached || (<ILaunchRequestArgs>this._launchAttachArgs).noDebug) {
if (this._clientAttached || (this._launchAttachArgs && (<ILaunchRequestArgs>this._launchAttachArgs).noDebug)) {
this._session.sendEvent(new TerminatedEvent(restart));
}

Expand Down

0 comments on commit 2092710

Please sign in to comment.