Fixed download manager launch fail issue
authorJihoon Chung <jihoon.chung@samsung.com>
Tue, 12 Mar 2013 06:07:21 +0000 (15:07 +0900)
committerGerrit Code Review <gerrit2@kim11>
Tue, 12 Mar 2013 11:36:51 +0000 (20:36 +0900)
[Issue#] TDIS-3645
[Problem] Unable to download file from website
[Cause] Wrong null check routine passed unuseful value to download
manager
[Solution] Add more null check routine
[SCMRequest] N/A

Change-Id: Ibe2152bc7228dff21b1fc444aea6e78627a0641a

src/view/common/view_logic_apps_support.cpp

index 9aeafd1..78c96d9 100644 (file)
@@ -155,8 +155,8 @@ class AppsSupportImplementation
             ApplicationLauncherEvents::LaunchApplicationByPkgname(
                 ApplicationLauncherPkgname::PKG_NAME_DOWNLOAD_PROVIDER,
                 url ? std::string(url) : "null",
-                mimeType ? mimeType : "null",
-                userParam ? userParam : "null"));
+                !mimeType && strlen(mimeType) != 0 ? mimeType : "null",
+                !userParam && strlen(userParam) != 0 ? userParam : "null"));
     }
 
     void html5VideoRequest(void* event_info)