diff --git a/src/plugins/minimal_scene/MinimalScene.cc b/src/plugins/minimal_scene/MinimalScene.cc index 4c9f17fe9..9285ae9f3 100644 --- a/src/plugins/minimal_scene/MinimalScene.cc +++ b/src/plugins/minimal_scene/MinimalScene.cc @@ -559,6 +559,11 @@ std::string IgnRenderer::Initialize() igndbg << "Create scene [" << this->sceneName << "]" << std::endl; auto scene = engine->CreateScene(this->sceneName); + if (nullptr == scene) + { + return "Failed to create scene [" + this->sceneName + "] for engine [" + + this->engineName + "]"; + } scene->SetAmbientLight(this->ambientLight); scene->SetBackgroundColor(this->backgroundColor);