fixed prevent issue (null pointer dereference)
authorKyungwooNoh <kw1004.noh@samsung.com>
Mon, 7 Oct 2013 05:23:32 +0000 (14:23 +0900)
committerKyungwooNoh <kw1004.noh@samsung.com>
Mon, 7 Oct 2013 05:23:47 +0000 (14:23 +0900)
Change-Id: Ic19a3d9b2c7cb6b01f29d5084701a628478d77aa
Signed-off-by: KyungwooNoh <kw1004.noh@samsung.com>
src/AppService.cpp

index f4100e3..819057a 100644 (file)
@@ -677,6 +677,12 @@ AppService::OnApplicationLaunched(const AppId& appId, Tizen::App::_AppType type)
 
                InitializeServices();
 
+               if (!__pContextMgr)
+               {
+                       SysLogException(NID_APP, E_SYSTEM, "Failed to initialize app-service");
+                       return ;
+               }
+
                LaunchSystemServices();
 
                Tizen::App::Package::_PackageManagerImpl::GetInstance()->AddEventListener(this, 0);