Fixed crash when RDS mode is not supported
authorJihoon Chung <jihoon.chung@samsung.com>
Sun, 12 May 2013 12:33:32 +0000 (21:33 +0900)
committerSoyoung Kim <sy037.kim@samsung.com>
Tue, 14 May 2013 07:10:15 +0000 (16:10 +0900)
[Issue#] N/A
[Problem] Crash is occurred when RDS update is failed
[Cause] Assert condition doesn't checked new error code
[Solution] Add NotSupportedRDSUpdate error enum to avoid Assert condition
[SCMRequest] N/A

Change-Id: I34718ea5a7468c0d09a81b8422d35cb8a8778d88

src/jobs/widget_install/job_widget_install.cpp

index 546d263..46d88b9 100644 (file)
@@ -267,7 +267,7 @@ JobWidgetInstall::JobWidgetInstall(
 
         AddTask(new InstallerTaskFail(result));
     } else if (result >= ConfigureResult::Failed &&
-            result <= ConfigureResult::Failed_DrmError) {
+            result <= ConfigureResult::Failed_NotSupportRDSUpdate) {
         // Installation is not allowed to proceed due to widget update policy
         LogWarning("Configure installation failed!");
 
@@ -1132,7 +1132,7 @@ bool JobWidgetInstall::checkSupportRDSUpdate(const WrtDB::ConfigParserData
 
         FOREACH(data, configInfo.settingsList)
         {
-            if (data->m_name == SETTING_VALUE_ENCRYPTION) 
+            if (data->m_name == SETTING_VALUE_ENCRYPTION)
             {
                 configValue = data->m_value;
             }