From 0b34e67699a0f14850209eb3c5a4c4a1864b9718 Mon Sep 17 00:00:00 2001 From: Deyan Ginev Date: Mon, 26 Feb 2018 11:47:24 +0200 Subject: [PATCH] fix(inspector): Fix --debug-brk issue with Inspector (#5460) --- tns-core-modules/debugger/devtools-elements.common.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tns-core-modules/debugger/devtools-elements.common.ts b/tns-core-modules/debugger/devtools-elements.common.ts index a046c1928..fc35c6f09 100644 --- a/tns-core-modules/debugger/devtools-elements.common.ts +++ b/tns-core-modules/debugger/devtools-elements.common.ts @@ -27,6 +27,10 @@ function getViewById(nodeId: number): ViewBase { export function getDocument() { const topMostFrame = frameTopmost(); + if (!topMostFrame) { + return undefined; + } + try { topMostFrame.ensureDomNode();