From 4b010db5ddd1edbccfc255097a1c22a834ccc277 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 13 Oct 2020 11:55:29 +0200 Subject: [PATCH] Update TutorialSpace.js --- Spaces/TutorialSpace.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Spaces/TutorialSpace.js b/Spaces/TutorialSpace.js index 37bef72c6..e1232ee10 100644 --- a/Spaces/TutorialSpace.js +++ b/Spaces/TutorialSpace.js @@ -700,8 +700,10 @@ function newTutorialSpace() { function stop() { resetAfterButtonPressed() checkForceFocus() - tutorialRootNode.payload.uiObject.isPlaying = false - tutorialRootNode = undefined + if (tutorialRootNode !== undefined) { + tutorialRootNode.payload.uiObject.isPlaying = false + tutorialRootNode = undefined + } currentStatus = 'Stopped' }