From: jungmin76.park Date: Fri, 19 Apr 2013 07:32:16 +0000 (+0900) Subject: fix crash when _AppWidgetProviderManagerImpl::Construct is invoked on UiApp X-Git-Tag: accepted/tizen_2.1/20130425.034720~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=485d0edecd2710c880da736079cc3da1feb7b141;p=platform%2Fframework%2Fnative%2Fshell.git fix crash when _AppWidgetProviderManagerImpl::Construct is invoked on UiApp Change-Id: I0c4e8c210214f15a1026492bd2590ccd3facd097 Signed-off-by: jungmin76.park --- diff --git a/src/FShell_AppWidgetProviderManagerImpl.cpp b/src/FShell_AppWidgetProviderManagerImpl.cpp index f411674..55c8e80 100644 --- a/src/FShell_AppWidgetProviderManagerImpl.cpp +++ b/src/FShell_AppWidgetProviderManagerImpl.cpp @@ -128,7 +128,11 @@ _AppWidgetProviderManagerImpl::Construct() __touchEventListeners.Construct(); Tizen::App::_AppImpl::GetInstance()->SetAppControlProviderInternalEventListener(this); - _ServiceAppImpl::GetInstance()->SetLifeDurationEventListener(this); + _ServiceAppImpl* pServiceAppImpl = _ServiceAppImpl::GetInstance(); + if( pServiceAppImpl) + { + pServiceAppImpl->SetLifeDurationEventListener(this); + } SysLog(NID_SHELL, "Exit."); return E_SUCCESS;