From 7b2f606316a4cc3f767da1272344ad8065487430 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Tue, 5 Jun 2018 10:45:51 -0400 Subject: [PATCH] Fix an issue where variable lookup would error if stage did not exist. --- src/engine/target.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/target.js b/src/engine/target.js index 223254221..5e4d2e08a 100644 --- a/src/engine/target.js +++ b/src/engine/target.js @@ -154,7 +154,7 @@ class Target extends EventEmitter { // If the stage has a global copy, return it. if (this.runtime && !this.isStage) { const stage = this.runtime.getTargetForStage(); - if (stage.variables.hasOwnProperty(id)) { + if (stage && stage.variables.hasOwnProperty(id)) { return stage.variables[id]; } }