From 8af4b28453f42729499f044e3b2b3fead7939a4f Mon Sep 17 00:00:00 2001 From: Jan Jurzitza Date: Wed, 21 Feb 2018 18:14:18 +0100 Subject: [PATCH] Return if miDebugger is not set in threadsRequest Not sure why it only happens for this function but this fixes the error in the console. --- src/mibase.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mibase.ts b/src/mibase.ts index 70a1c73..cc728fa 100644 --- a/src/mibase.ts +++ b/src/mibase.ts @@ -260,6 +260,7 @@ export class MI2DebugSession extends DebugSession { protected threadsRequest(response: DebugProtocol.ThreadsResponse): void { if (!this.miDebugger) { this.sendResponse(response); + return; } this.miDebugger.getThreads().then( threads => {