SysLog(NID_APP, "Enter");
ArrayList* pArray = Tizen::App::Package::_PackageManagerImpl::GetInstance()->GetAppLaunchConditionListN(appId);
- SysTryReturnVoidResult(NID_APP, pArray != null, E_INVALID_STATE, "failed to GetAppLaunchConditionListN(%ls)", appId.GetPointer());
+
+ if (pArray == null)
+ {
+ SysLog(NID_APP, "%ls does not have launch condition", appId.GetPointer());
+ return;
+ }
Tizen::App::Package::_LaunchConditionInfoImpl* pCondition = null;
String condition;
_ContextManager::_Util::QueryFeatureFromPackageManager(const String& appId, const String& execName, const String& feature)
{
ArrayList* pFeatureList = Tizen::App::Package::_PackageManagerImpl::GetInstance()->GetPackageAppFeatureListN(appId, execName);
- SysTryReturn(NID_APP, pFeatureList != null, L"", E_SYSTEM, "Cannot acquire feature list.");
-
String ret = L"";
+ if (pFeatureList == null)
+ {
+ SysLog(NID_APP, "%ls does not have any feature.", appId.GetPointer());
+ return ret;
+ }
+
for (int i = 0; i < pFeatureList->GetCount(); i++)
{
const Tizen::App::Package::_AppFeatureInfoImpl* pInfo = static_cast<const Tizen::App::Package::_AppFeatureInfoImpl*>(pFeatureList->GetAt(i));