add the condition for the provider name
authorkyeongwoo.lee <kyeongwoo.lee@samsung.com>
Wed, 29 May 2013 12:00:56 +0000 (21:00 +0900)
committerkyeongwoo.lee <kyeongwoo.lee@samsung.com>
Wed, 29 May 2013 12:02:18 +0000 (21:02 +0900)
Change-Id: Ie92d8cfa75fef396d120d5a197295b2dfb6bf158
Signed-off-by: kyeongwoo.lee <kyeongwoo.lee@samsung.com>
src/FShell_AppWidgetProviderManagerImpl.cpp

index 5d46b23..e6de3d1 100644 (file)
@@ -381,6 +381,7 @@ _AppWidgetProviderManagerImpl::AddAppWidget(const AppId& providerAppId, const St
        result r = _AccessController::CheckUserPrivilege(_PRV_APPWIDGETPROVIDER_INSTALL);
        SysTryReturnResult(NID_SHELL, !IsFailed(r), E_PRIVILEGE_DENIED, "The application does not have the privilege to call this method.");
        SysTryReturnResult(NID_SHELL, _Aul::IsInstalled(providerAppId) == true, E_APP_NOT_INSTALLED, "The application(%ls) is not installed.", providerAppId.GetPointer());
+       SysTryReturnResult(NID_SHELL, !providerName.IsEmpty(), E_OBJ_NOT_FOUND, "The provider name is empty.");
 
        r = CheckCertificate(Tizen::App::App::GetInstance()->GetAppId(), providerAppId);
        SysTryReturnResult(NID_SHELL, !IsFailed(r), r, "VerifyCertification failed.");