[Application] fix tct fail issue at get iconPath
authortaekeun.kang <taekeun.kang@samsung.com>
Thu, 24 Sep 2015 11:54:05 +0000 (20:54 +0900)
committertaekeun.kang <taekeun.kang@samsung.com>
Thu, 24 Sep 2015 11:54:05 +0000 (20:54 +0900)
Change-Id: I31542b936dcf9f328aed671497a9bef045e1bc49
Signed-off-by: taekeun.kang <taekeun.kang@samsung.com>
src/application/application_utils.cc

index b47f203..058568d 100755 (executable)
@@ -57,6 +57,10 @@ void ApplicationUtils::CreateApplicationInformation(const pkgmgrinfo_appinfo_h h
   ret = pkgmgrinfo_appinfo_get_icon(handle, &tmp_str);
   if ((PMINFO_R_OK != ret) || (nullptr == tmp_str)) {
     LoggerE("Failed to get icon path");
+    if (PMINFO_R_ERROR == ret) {
+      tmp_str = "(NULL)";
+      app_info->insert(std::make_pair("iconPath", picojson::value(tmp_str)));
+    }
   } else {
     app_info->insert(std::make_pair("iconPath", picojson::value(tmp_str)));
   }