diff --git a/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js b/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js index 6d3b57d147..2004976005 100644 --- a/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js +++ b/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js @@ -99,7 +99,7 @@ DropdownPanel.prototype.update = function (_data, _header) { DropdownPanel.prototype.setContent = function (node) { if (!this.view) return var parent = this.view.querySelector('.dropdownpanel div.dropdowncontent') - parent.replaceChild(node, parent.firstElementChild) + if (parent) parent.replaceChild(node, parent.firstElementChild) } DropdownPanel.prototype.render = function (overridestyle) { diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 955db1e7fd..5ce375812d 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -183,9 +183,6 @@ class CompileTab extends CompilerApi {