Fixing SVACE error 74/277574/1
authorDavid Steele <david.steele@samsung.com>
Fri, 8 Jul 2022 09:40:50 +0000 (10:40 +0100)
committerDavid Steele <david.steele@samsung.com>
Fri, 8 Jul 2022 09:40:50 +0000 (10:40 +0100)
Change-Id: Idd73fdbc59aa0b4fdfccd6e16af5dd7adb3d3584

dali/internal/graphics/gles-impl/egl-graphics-controller.cpp

index d7b8d33..2456deb 100644 (file)
@@ -316,7 +316,10 @@ void EglGraphicsController::ActivateResourceContext()
   if(!mSharedContext)
   {
     auto eglGraphics = dynamic_cast<Dali::Internal::Adaptor::EglGraphics*>(mGraphics);
-    mSharedContext   = eglGraphics->GetEglImplementation().GetContext();
+    if(eglGraphics)
+    {
+      mSharedContext = eglGraphics->GetEglImplementation().GetContext();
+    }
   }
 }