diff --git a/apps/remix-ide/src/app/tabs/staticanalysis/staticAnalysisView.js b/apps/remix-ide/src/app/tabs/staticanalysis/staticAnalysisView.js index f761a49116..51804ae985 100644 --- a/apps/remix-ide/src/app/tabs/staticanalysis/staticAnalysisView.js +++ b/apps/remix-ide/src/app/tabs/staticanalysis/staticAnalysisView.js @@ -211,6 +211,9 @@ staticAnalysisView.prototype.checkModule = function (event) { } } staticAnalysisView.prototype.correctRunBtnDisabled = function () { + if (!this.view) { + return + } const selected = this.view.querySelectorAll('[name="staticanalysismodule"]:checked') if (this.lastCompilationResult && selected.length !== 0) { this.runBtn.removeAttribute('disabled')