[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
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)