From: Jihoon Chung Date: Tue, 12 Mar 2013 06:07:21 +0000 (+0900) Subject: Fixed download manager launch fail issue X-Git-Tag: 2.1b_release~22^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94310cb1ab37a874e767fc18d7c00b0d6e5b4b31;p=platform%2Fframework%2Fweb%2Fwrt.git Fixed download manager launch fail issue [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 --- diff --git a/src/view/common/view_logic_apps_support.cpp b/src/view/common/view_logic_apps_support.cpp index 9aeafd1..78c96d9 100644 --- a/src/view/common/view_logic_apps_support.cpp +++ b/src/view/common/view_logic_apps_support.cpp @@ -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)