[Issue] TREL-136
[Problem] Bluetooth could not send file to other device
[Cause] We did not consider the exception case
[Solution] Check the exception case
Change-Id: I30c2357fec5faf503bfe30b8065155ae8a1bae76
BT_DBG("url_schem: %s", url_sheme);
- if (g_strcmp0(url_sheme, "file") == 0) {
+ if (url_sheme == NULL || g_strcmp0(url_sheme, "file") == 0) {
/* File transfer */
file_path = g_filename_from_uri(file_url, NULL, NULL);
if (service_add_extra_data(service, "type", "file") < 0)