Check Scene pointer is null or not 09/299209/1
authorseungho baek <sbsh.baek@samsung.com>
Thu, 21 Sep 2023 11:43:36 +0000 (20:43 +0900)
committerseungho baek <sbsh.baek@samsung.com>
Thu, 21 Sep 2023 11:43:36 +0000 (20:43 +0900)
 - UpdateManager::KeepRendering did not check scene pointer is null or not.
 - This patch check it before calling KeepRendering

Change-Id: Icb61fc9d6b14ea31a5d6f3f0c6aa67fc28ea19c4
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
dali/internal/update/manager/update-manager.cpp

index d33fc7b..484687a 100644 (file)
@@ -1281,7 +1281,10 @@ void UpdateManager::KeepRendering(float durationSeconds)
 {
   for(auto&& scene : mImpl->scenes)
   {
-    scene->scene->KeepRendering(durationSeconds);
+    if(scene->scene)
+    {
+      scene->scene->KeepRendering(durationSeconds);
+    }
   }
 }