Update for exception log
authorJaesung Ku <jaesung.ku@samsung.com>
Thu, 4 Jul 2013 04:18:07 +0000 (13:18 +0900)
committerYoung Ik Cho <youngik.cho@samsung.com>
Tue, 6 Aug 2013 09:47:37 +0000 (18:47 +0900)
Change-Id: Ieb860429cf883f6c859ce29712ca9ae2a0a25307
Signed-off-by: Jaesung Ku <jaesung.ku@samsung.com>
src/FApp_ConditionManagerStub.cpp
src/FApp_ContextManager.cpp

index 5116401..53e314e 100644 (file)
@@ -129,7 +129,12 @@ _ConditionManagerStub::OnInstallComplete(const AppId& appId )
        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;
index 706d1c2..902122c 100755 (executable)
@@ -501,10 +501,14 @@ String
 _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));