Adaptor checks its AddOnManager instance before operating on it. 60/239660/2
authorGyörgy Straub <g.straub@partner.samsung.com>
Tue, 28 Jul 2020 14:27:04 +0000 (15:27 +0100)
committerGyorgy Straub <g.straub@partner.samsung.com>
Wed, 29 Jul 2020 10:03:13 +0000 (10:03 +0000)
The Windows version has no AddOnManager implementation.

Change-Id: I56030ec0e97a41bfb0c6f5f82418d702e05f9539
Signed-off-by: György Straub <g.straub@partner.samsung.com>
dali/internal/adaptor/common/adaptor-impl.cpp

index e73d5a2..b94f90d 100644 (file)
@@ -409,7 +409,10 @@ void Adaptor::Start()
     (*iter)->OnStart();
   }
 
-  mAddOnManager->Start();
+  if (mAddOnManager)
+  {
+    mAddOnManager->Start();
+  }
 }
 
 // Dali::Internal::Adaptor::Adaptor::Pause
@@ -425,7 +428,10 @@ void Adaptor::Pause()
     }
 
     // Extensions
-    mAddOnManager->Pause();
+    if (mAddOnManager)
+    {
+      mAddOnManager->Pause();
+    }
 
     // Pause all windows event handlers when adaptor paused
     for( auto window : mWindows )
@@ -462,7 +468,10 @@ void Adaptor::Resume()
     }
 
     // Resume AddOnManager
-    mAddOnManager->Resume();
+    if (mAddOnManager)
+    {
+      mAddOnManager->Resume();
+    }
 
     // Inform observers that we have resumed.
     for( ObserverContainer::iterator iter = mObservers.begin(), endIter = mObservers.end(); iter != endIter; ++iter )
@@ -495,7 +504,10 @@ void Adaptor::Stop()
       (*iter)->OnStop();
     }
 
-    mAddOnManager->Stop();
+    if (mAddOnManager)
+    {
+      mAddOnManager->Stop();
+    }
 
     mThreadController->Stop();