diff options
-rw-r--r-- | src/FApp_ConditionManagerService.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FApp_ConditionManagerService.cpp b/src/FApp_ConditionManagerService.cpp index a36f268..fd8f77b 100644 --- a/src/FApp_ConditionManagerService.cpp +++ b/src/FApp_ConditionManagerService.cpp @@ -120,6 +120,7 @@ _ConditionManagerService::InitializePluginData(void) r = reg.GetSectionListN(&pSections); SysTryReturnResult(NID_APP, !IsFailed(r), r, "failed to GetSectionListN."); + SysTryReturnResult(NID_APP, pSections != null, r, "Condition plugin info does not exist."); std::unique_ptr<IEnumerator> pEnum(pSections->GetEnumeratorN()); SysTryCatch(NID_APP, pEnum != null, , E_FAILURE, "failed to GetEnumeratorN."); @@ -250,6 +251,7 @@ _ConditionManagerService::InitializeConditionalOperations(void) r = _ConditionDatabaseHelper::GetAllSectionsFromConditionDb(pSections.get()); SysTryReturnResult(NID_APP, !IsFailed(r), r, "failed to GetAllSectionsFromConditionDb."); + SysTryReturnResult(NID_APP, pSections != null, r, "App Launch conditions does not exist."); std::unique_ptr< IEnumerator > pEnum(pSections->GetEnumeratorN()); SysTryReturnResult(NID_APP, pEnum != null, r, "failed to GetEnumeratorN."); @@ -620,7 +622,7 @@ _ConditionDatabaseHelper::GetAllSectionsFromConditionDb(ArrayList* pSections) sql.Append(L"SELECT SectionName FROM CondTbl"); std::unique_ptr<DbEnumerator> pEnum(condDb.QueryN(sql)); - SysTryReturnResult(NID_APP, pEnum != null, E_FAILURE, "failed to query sql statement."); + SysTryReturnResult(NID_APP, pEnum != null, E_SUCCESS, "No record exists in database."); while (pEnum->MoveNext() == E_SUCCESS) { |