SysTryReturn(NID_APP, !aId.IsEmpty(), null, E_INVALID_ARG, "[E_INVALID_ARG] Provider Id is empty.");
SysTryReturn(NID_APP, !oId.IsEmpty(), null, E_INVALID_ARG, "[E_INVALID_ARG] Operation Id is empty.");
+ const AppId& actualAppId = _AppControlRegistry::GetInstance()->GetAliasAppId(aId);
+ const bool isInstalled = _Aul::IsInstalled(actualAppId);
+ SysTryReturn(NID_APP, isInstalled, null, E_OBJ_NOT_FOUND, "[E_OBJ_NOT_FOUND] %ls not installed.", actualAppId.GetPointer());
+
+
AppControl* pAc = new (std::nothrow) AppControl;
SysTryReturn(NID_APP, pAc != null, null, E_OUT_OF_MEMORY, "AppControl allocation failure.");
pProvider->Release();
}
- // after acquring request number, pLib should be managed from the list, not CATCH
if (IsFailed(r))
{
_AppControlManager::GetInstance()->__inAppManager.RemoveItem(req);
pProvider->Release();
}
- // after acquring request number, pLib should be managed from the list, not CATCH
if (IsFailed(r))
{
_AppControlManager::GetInstance()->__inAppManager.RemoveItem(req);
SysLog(NID_APP, "Found matching AppControl (%ls, %ls)", pAppId->GetPointer(), pOperation->GetPointer());
const String& soName = GetTizenAppControlProvider(*pAppId, *pOperation);
- SysAssert(!soName.IsEmpty());
return _AppControlImpl::CreateN(soName, *pAppId, *pOperation, _APPCONTROL_PROPERTY_PUBLIC);
}
result r = pImpl->__map.GetValue(pid, tmp);
if (r != E_SUCCESS)
{
- SysLog(NID_APP, "Cannot acquire app from pid %d.", pid);
+ SysLog(NID_APP, "[%s] Cannot acquire app from pid %d.", GetErrorMessage(r), pid);
return -1;
}
SetOperation(__pBundle, oId);
- if (pUri)
+ if (pUri && !pUri->IsEmpty())
{
SetUri(__pBundle, *pUri);
}
- if (pMime)
+ if (pMime && !pMime->IsEmpty())
{
SetMime(__pBundle, *pMime);
}